Andrew Savige wrote: > #!/usr/bin/perl -l > use POSIX;print strtol pop,36 > > I think this should work, but it prints a spurious trailing zero.
Ronald J Kimball wrote: > RTFM. > > strtol String to (long) integer translation. Returns the > parsed number and the number of characters in the > unparsed portion of the string In retrospect, I am astonished that I did not go to the trouble of 'perldoc POSIX' at any time. I knew I was being lazy, but that is taking laziness to new heights! Maybe I was pre-occupied with trying to win a T-shirt for the weirdest/wackiest entry. I vaguely knew about strtol from ANSI C and just tried it and it seemed to work as I expected. I spent all of 10 minutes on my 33-stroke solution (my previous best being 7918). At that point, I remember feeling dirty to the point of being physically sick. I thought about the true golf artists, like Spiff and Rick, toiling to produce beautiful and elegant 46/47 stroke solutions and I go ahead of them with this rubbish in 10 minutes. Like Bart, I felt utterly bored and didn't spend any more time on strtol after that (except to write a weird strtol-based 'Perl-is-C;C-is-Perl' entry). `/anick-Zen-like looking inside myself, I know I lost to all those golfers producing those brilliant 46/47-stroke solutions. I think TPR should send Spiff a T-shirt and a cap; he really earned it. /-\ndrew