See my update above, and implement the advice by applying the following change:
foreach my $filename ( $a, $b ) { open my $fh, '<', $filename or die $!;
Dave
In reply to Re^5: the variable is lost
by davido
in thread the variable is lost
by cruise
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |