in reply to Re: Re: arrays or hashes
in thread arrays or hashes

I would do something like this:

my %data; while (<FILE>) { my ($name, $val) = split /\s+/; push @{ $data{$name} }, $val; }