develooper Front page | perl.fwp | Postings from February 2002

Re: TPR0 Final Results

Thread Previous | Thread Next
From:
Ronald J Kimball
Date:
February 15, 2002 22:14
Subject:
Re: TPR0 Final Results
Message ID:
20020216011406.B1308119@linguist.thayer.dartmouth.edu
On Sat, Feb 16, 2002 at 11:10:41AM +1100, Andrew.Savige@ir.com 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

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About