- or download this
local *FILE;
open FILE, "<", "./$nbdc_dir/$file" or die ...
...
- or download this
open my $fh, "<", "./$nbdc_dir/$file" or die ...
$nbdc_filehandles[$index] = $fh;
- or download this
open $nbdc_filehandles[$index], "<", "./$nbdc_dir/$file" or die ...
- or download this
$_ = <$fh>; # OK
$_ = < $fh >; # not OK
- or download this
my $fh = $nbdc_filehandles[$index];
$_ = <$fh>;
# instead of
# $_ = <$nbdc_filehandles[$index]>;
- or download this
my @nbdc_filehandles;
my @nbdc_data;
...
my $fh = $nbdc_filehandles[$idx];
my $line = <$fh>;
# ...