Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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: (2)
As of 2015-08-29 21:48 GMT
Find Nodes?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...

    Results (344 votes), past polls