Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Jumping out of a partially read file

by mephit (Scribe)
on May 09, 2002 at 21:46 UTC ( #165531=note: print w/ replies, xml ) Need Help??


in reply to Jumping out of a partially read file

while (<FILE>) { last unless /^/ .. /^MARKER/; $foo = $bar; }
Or whatever pattern you use to signify the end of the header. HTH.


Comment on Re: Jumping out of a partially read file
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (17)
As of 2015-07-31 16:42 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 (279 votes), past polls