in reply to Using a filehandle tucked into an array
This is necessary to get open to write the fh back, although these days a more common idiom for the same thing is:foreach my $file (@nbdc_files){ open \*FILE, "./$nbdc_dir/$file" || die "Can't open ./$nbdc_dir/$f +ile"; push @nbdc_filehandles, \*FILE; # etc. }
foreach my $file (@nbdc_files){ open my $fh, "./$nbdc_dir/$file" || die "Can't open ./$nbdc_dir/$f +ile"; push @nbdc_filehandles, $fh; # etc. }
-M
Free your mind
|
|---|