Or perhaps:
my @FH; for my $file ( qw/a.txt b.txt/ ) { open( $FH[ @FH ], '>', $file ) || ...; }
In reply to Re^2: globbing filehandles in arrays
by jwkrahn
in thread globbing filehandles in arrays
by why_bird
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |