in reply to I am gating MAD!
For example:
open(I,'<','error.log'); undef $/; $_ = <I>; print "$1\n" if /\s*HELPTEXT\s+(.*)\s*HELP/s;
Of course, you shouldn't use (.*) in matches but if you're really impatient and the input stays this simple (doesn't report multiple errors), this should work.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: I am gating MAD!
by someone202 (Initiate) on Mar 02, 2008 at 08:31 UTC | |
by ysth (Canon) on Mar 02, 2008 at 09:12 UTC |