Don't ask to ask, just ask | |
PerlMonks |
Re: making a shorter code!by tlhf (Scribe) |
on Sep 15, 2002 at 00:51 UTC ( [id://197964]=note: print w/replies, xml ) | Need Help?? |
Is the shortest I could think of in a short period of time. At 144 bytes. The chomp seemed unecessary (Perl 5.6.1/Win32), and -l allowed me to skip \ns, and using printf allowed the three chars of %f and a commer, rather than "..". I didn't seem to get much benefit by using $m=miles or $m=' miles' tho.
In Section
Seekers of Perl Wisdom
|
|