While attempting to figure out a way to do conversion of large (overly)
integers from base 10 to base 36, and back again I naturally went to
CPAN and looked at Math::Base36, which appears to have a bug in its use
of 'index' to determine if a character is not a valid base36 character,
at least by the versions of the docs for index that I have access to. 
'index' returns 0 or greater for the position, with -1 being a not
found.  Has this changed? Did 'index' start at 1 in the past?

The module also appears to have some other problems with arbitrarily
large integers despite its use of Math::BigInt, though I couldn't really
tell whether it was just using that module improperly, or whether the
apparently ancient version of BigInt I have ($VERSION says 0.01) (my
Perl is at 5.6.1) is buggy (which from my other tests it does appear to
be), or maybe a little of both.

Also not sure whether the Math::Base36 module is being maintained (or
should have made it to CPAN in the first place) but I am asking about
index to properly word my e-mail to the author, is this a bug or a
syntax change? Seems like a pretty big one to be the latter...

Any one out there have a better approach to wrangling conversions of
large ints to and from base36?  At this point I may have to roll my own,
icky.....

http://danconia.org

--
Boycott the Sugar Bowl! You couldn't pay me to watch that game.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to