in reply to (Golf) Friday Golf: Print Formatted Sequence of Digits
Slight trick to get rid of the join.
| perl -e '$,=" ";print map(sprintf("%03u",$_),2..20),"\n"' |
Saves 1 char. I feel special!
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
Note: All code is untested, unless otherwise stated
|
|---|