On Sat, Feb 16, 2002 at 11:10:41AM +1100, [EMAIL PROTECTED] wrote: > Stephen Turner wrote: > > Can someone explain to me why > > > > -l use POSIX;print strtol pop,36 > > > > doesn't work? Where does the extra 0 come from? > > To quote myself to Dave and Jerome: > > BTW, because I felt you were already inundated with queries about > it, I did not bother you with what seems to be a Perl bug that > prevents a 32-stroke solution from working. I was too lazy to > analyse it (instead, I trusted that Ton would, but since he has > not posted 32, I guess it cannot be worked around). > > #!/usr/bin/perl -l > use POSIX;print strtol pop,36 > > I think this should work, but it prints a spurious trailing zero.
RTFM. strtol String to (long) integer translation. Returns the parsed number and the number of characters in the unparsed portion of the string Ronald