Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: strip until blank line

by quidity (Pilgrim)
on Nov 23, 2000 at 00:04 UTC ( #43009=note: print w/ replies, xml ) Need Help??

in reply to strip until blank line

There is a very quick way to do this:

{ local $/ = ""; # set to paragraph mode $bad_stuff = <FILE>; # reads in until first blank line } # .. $/ is then returned to it's previous # value, and you can carry on reading from # <FILE> line by line.

Comment on Re: strip until blank line
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://43009]
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: (4)
As of 2016-02-12 00:53 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (386 votes), past polls