my $key = <STDIN>; chomp($key); $hash{$key} = [] unless $hash{$key}; my $val = <STDIN>; chomp($val); push @{$hash{$key}}, $val;
In reply to Re: Converting a hash element into an array
by luckypower
in thread Converting a hash element into an array
by rockers
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |