http://qs1969.pair.com?node_id=520482


in reply to What one-liners do people actually use?

perl -lpe '$_=$!=$_'
Translates UNIX error codes to English.

Sufficiently advanced Perl is indistinguishable from garbage.

Replies are listed 'Best First'.
Re^2: What one-liners do people actually use?
by jmcnamara (Monsignor) on Jan 03, 2006 at 00:55 UTC
    Nice. ++

    I use this for a static list:

    perl -le 'print $!+0, "\t", $!++ for 0..127'
    There are some other variations here.

    --
    John.