It looks that you could simplify your code to
All you have to do then is print some linefeeds when you start a new exception.open (ERRFILE, ">error.log"); open (LOGFILE "/tmp/app.log"); while (<LOGFILE>) { print ERRFILE $line if /xception/; }
CountZero
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
In reply to Re: pattern searching and grouping by paragraph
by CountZero
in thread pattern searching and grouping by paragraph
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |