in reply to (Golf) Friday Golf: Print Formatted Sequence of Digits

*grins* I don't know how cheating this is, but ...
echo '"000" .. "020"' | perl -ple '@f=eval;$_="@f"'

Between the quotes, I'm at 14. Woo-hoo! *laughs*

------
We are the carpenters and bricklayers of the Information Age.

The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

Replies are listed 'Best First'.
Re^2: (Golf) Friday Golf: Print Formatted Sequence of Digits
by Aristotle (Chancellor) on Aug 14, 2003 at 20:22 UTC
    Well, if you want to go that route..
    echo '@_ = "002" .. "020"; print "@_\n"' | perl -ne 'eval'
    Four characters! (Reminds me of "how do you write a LISP interpreter in LISP?".)

    Makeshifts last the longest.