in reply to Pushing into a hash of arrays
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 !)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Pushing into a hash of arrays
by alberto_zurita (Initiate) on Mar 17, 2015 at 19:51 UTC |