in reply to Re: Re: Re: (Golf) Friday Golf: Print Formatted Sequence of Digits (0 :)
in thread (Golf) Friday Golf: Print Formatted Sequence of Digits
Well. If you insist on using shells that muck around with the input before your programs get a chance to see it :^)
P:\test>perl -MO=Deparse -l40eprint,for'002'..'020' BEGIN { $/ = "\n"; $\ = " "; } foreach $_ ('002' .. '020') { print $_; } -e syntax OK P:\test>perl -l40eprint,for'002'..'020' 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 01 +9 020
Works fine for me :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: (Golf) Friday Golf: Print Formatted Sequence of Digits (0 :)
by Aristotle (Chancellor) on Aug 14, 2003 at 21:39 UTC | |
by BrowserUk (Patriarch) on Aug 14, 2003 at 21:56 UTC |