Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: Parsing... possible w/o too much stress ?

by antifun (Sexton)
on Mar 19, 2003 at 21:16 UTC ( [id://244462]=note: print w/replies, xml ) Need Help??


in reply to Re: Parsing... possible w/o too much stress ?
in thread Parsing... possible w/o too much stress ?

This will work as long as the brace that closes the env block is the last one. To wit:

env { anything you want here } not-env { other stuff }

is not going to work.

Now, it's possible that his input might look as simple as your example...but then he (hopefully) would have figured out a solution for that case already; something brain-dead like cat input | awk '{if (first == 1) {print l; l = $0;} else {first=1} }' for instance.

A poster above said it already -- if it nests, don't use regexes. Even if you do get it to work, you'll wish you hadn't.

---
"I hate it when I think myself into a corner."
Matt Mitchell

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-19 20:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found