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}}, $_; }
In reply to Re (tilly) 1: How do I read the files in @ARGV one by one
by tilly
in thread How do I read the files in @ARGV one by one
by Elias
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |