Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 rifling through the Monastery: (10)
As of 2014-12-27 22:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls