> I am looking to get rid off the error. ... ANd I want to write the exceptions to new file.
so avoid uninitialized '$2'!
if (defined $2) { print "$1$2|$3\n"; } else { print $exception_fh "$_\n"; }
In reply to Re: Print only if pattern matches
by LanX
in thread Print only if pattern matches
by brad_nov
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |