Which is one char shorter if you don't count the command line opt...#!/usr/bin/perl -n }{printf"%010d\n",$.
Update: The rules for this particular course counted the command line opts, so I'd take a three stroke penalty for ' -n' which puts me two strokes behind on the leader board...
-Blake
In reply to Re: Fun With Perl: Golf
by blakem
in thread Fun With Perl: Golf
by japhy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |