Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

(jeffa) Re: The problem with one-liners...

by jeffa (Chancellor)
on Feb 05, 2003 at 18:15 UTC ( #232875=note: print w/ replies, xml ) Need Help??


in reply to The problem with one-liners...

I too save one-liners in a text file, but i really feel that if i can't come up with a one-liner in about the same time it takes me to post a short reply here at PM, then i have no business using a one-liner for the task at hand. One-liners are stream of thought conciousness, so to speak - true throw-away scripts. Anything else should probably be in a file that includes strict and warnings.

jeffa

perl -lpe '}{$_=$.' somefile


Comment on (jeffa) Re: The problem with one-liners...
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (16)
As of 2015-07-01 20:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (19 votes), past polls