Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2015-07-04 17:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls