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?? |
This will work as long as the brace that closes the env block is the last one. To wit:
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
In Section
Seekers of Perl Wisdom
|
|