in reply to (Golf) Friday Golf: Print Formatted Sequence of Digits
24 chars. But I bet its already posted. (havent checked to keep an open mind.)
perl -e "$,=' ';print'002'..'020'" perl -e '$,=" ";print"002".."020"'
I must be missing something though.. Surely this is obvious?
• Update:
Yep. It _was_ obvious. I'm so glad. :-) Nice one to those that remembered the value of $" (which didnt occur to me to use for some reason.)
|
|---|