Help for this page
for (@somelist) { my($foo,$bar) = split; ... $somehash{ $foo }->{ $bar } ||= []; push @{ $somehash{ $foo }->{ $bar } }, $x; }