![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Re: Array of filehandlesby Krambambuli (Curate) |
on Apr 29, 2013 at 07:43 UTC ( #1031176=note: print w/replies, xml ) | Need Help?? |
You could try as well something like my %handles = map { open my $fh, '<', $_; $fh => $_ } @files; and further use keys %handles instead of @handles, and then the filename is $handles{$fh}.
In Section
Seekers of Perl Wisdom
|
|