Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: how to use matching operator on newlines

by extremely (Priest)
on Jan 03, 2007 at 21:19 UTC ( [id://592834]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -i -pe 'BEGIN{$/="\n\n"} s/\n\n/\n/;' foo.txt
  2. or download this
    perl -i -pe 'BEGIN{$/="\n\n";$\="\n"} chomp;' foo.txt

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-03-29 10:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found