in reply to pattern searching and grouping by paragraph
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
|
|---|