in reply to How do I read the files in @ARGV one by one
The following snippet should work:
The purpose of the first line is to make sure that files which are empty are included in your hash.$data{$_} = [] foreach @ARGV; while (<>) { push @{$data{$ARGV}}, $_; }
|
|---|