orpush @{ $directory{owner1} }, $value;
if there actually is an intermediate hash with key "0" that holds the array (I'm not sure why you need the intermediate hash).push @{ $directory{owner1}{0} }, $value;
Updated: D'oh! Added missing commas in code samples (thanks hdb / choroba / davido !)
In reply to Re: Pushing into a hash of arrays
by Arunbear
in thread Pushing into a hash of arrays
by alberto_zurita
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |