Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by jeffa (Bishop)
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://232875]
help
Chatterbox?
[Discipulus]: soup without heat protections as CPUs are doomed to burned..
[1nickt]: The dangers of milk-based soup, you mean?
[Corion]: choroba: Ouch! But you don't need that many external events for that. I have on several occasions set up milk to cook and then programmed a bit, only to find the milk burned and congealed over the stove :-/
[choroba]: it's still edible, just need to scour the pot
[1nickt]: Corion I have a large site I need to check for broken links and absolute links. Making a scraper is easy of course; a spider that crawls a whole site is a little more involved ... I was planning a queue-based tool. Intersted to see what you do...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2017-10-18 11:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (244 votes). Check out past polls.

    Notices?