Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Survey file parsing

by YYCseismic (Beadle)
on Jun 27, 2008 at 20:53 UTC ( [id://694449]=note: print w/replies, xml ) Need Help??


in reply to Survey file parsing

Okay, I think I've solved it. I just discovered Recipe 6.8 in the Perl Cookbook 2nd Edition (p. 199), which uses the .. and ... operators to extract a range of lines. So long as I know that the first header line will always have 'H' as the first character, and as long as I know what the last header line might look like, then I should have no problem. I've never seen them use anything other than '<' or '[' on that last line.

Thanks for your help. I was actually looking through the cookbook for another problem, and this one just popped out. Go figure, eh?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-03-29 08:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found