if (defined $2) { print "$1$2|$3\n"; } else { print $exception_fh "$_\n"; }