Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Removing linefeeds from part of a file

by Abigail (Deacon)
on Jul 12, 2001 at 02:33 UTC ( #95881=note: print w/replies, xml ) Need Help??


in reply to Removing linefeeds from part of a file

{ local $\ = "\n"; while (<>) { chomp; if (/^ENDDESCRIPTION$/) { print "\n"; $\ = "\n"; } print; $\ = "" if /^DESCRIPTION$/; } }

-- Abigail

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://95881]
help
Chatterbox?
[shmem]: .oO( two left hands, full of thumbs )
[erix]: well-thumbed

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2018-02-19 14:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (266 votes). Check out past polls.

    Notices?