Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: What one-liners do people actually use?

by gordoste (Initiate)
on Jan 03, 2006 at 00:39 UTC ( #520482=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: What one-liners do people actually use?
Download Code
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://520482]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2014-12-27 01:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls