our @array; our %hash; my $i = 0; foreach my $f (@ARGV) { open(F,"< $f") or die "Couldn't open '$f': $!\n"; my @lines = <F>; # This is how to store the lines into an array $array[$i] = \@lines; # And this is how to store them into a hash. $hash{"array$i"} = \@lines; $i++; }
In reply to Re: naming multiple arrays
by sgifford
in thread naming multiple arrays
by kborz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |