http://www.perlmonks.org?node_id=896447


in reply to Re^2: Help with splitting one text file into other text files
in thread Help with splitting one text file into other text files

Or FileCache::Handle, but what is really needed, is a lexically scoped pragma like autodie, so you can
use autofilecache; use autodie; my @Fs; for(1..1024){ open my($f),'<',$_; push @Fs, $f; }