Let's break it down:
push (@ {$GSPmsgHash{$date} }, @days_between);1. $GSPmsgHash{$date}
This gives the arrayref for key $date of the hash $GSPmshHash
2. @{ $GSPmsgHash{$date} }
Now you're dereferencing the arrayref and getting the array
3. push (@ {$GSPmsgHash{$date} }, @days_between);
So now you push two the two elements from @days_between onto the array referenced by $GSPmsgHash{$date}.
So the result you're seeing is completely expected. Where were you trying to add the @days_between data?
In reply to Re: add data to HoA
by Riales
in thread add data to HoA
by dbs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |