in reply to Re: globbing filehandles in arrays
in thread globbing filehandles in arrays

Or perhaps:

my @FH; for my $file ( qw/a.txt b.txt/ ) { open( $FH[ @FH ], '>', $file ) || ...; }