in reply to Capturing parentheses out of scope

Why can't you just divert the whole line that doesn't match to your second file
} else { print $out2 $_; }

Update:

Also, if anyone can spot other potential issues with my code, I'd appreciate constructive criticism.
You could store your string format in a variable, then use it in both printf statements:
my $fmt = "%-28s %-30s %-12s %-10s %-18s %-22s %-21s %s \n"; ... printf $fmt, $7, $1 ...
You could also consider using Text::Table instead.

Replies are listed 'Best First'.
Re^2: Capturing parentheses out of scope
by iangibson (Scribe) on Jan 20, 2011 at 21:12 UTC
    I could do this, but I'd like these lines to also have my new formatting if possible.