Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: multi-line in-place edits

by Roy Johnson (Monsignor)
on Feb 15, 2005 at 19:38 UTC ( #431305=note: print w/ replies, xml ) Need Help??


in reply to multi-line in-place edits

perl -n0777i.bak -e 'print "{$_}"' filename.txt
The 0777 option does the same thing as the BEGIN that others are suggesting. See perldoc perlrun.

Caution: Contents may have been coded under pressure.


Comment on Re: multi-line in-place edits
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://431305]
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: (14)
As of 2014-11-27 11:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (183 votes), past polls