# Bad - creates a new copy of the array. #@someArray = @{ $textHash{$da} }; #push @someArray , @textarray; # Do this instead. This adds more to the referenced array. push @{ $textHash{$da} }, @textarray;
In reply to Re: Help needed to understand hashes and hashes of arrays
by tall_man
in thread Help needed to understand hashes and hashes of arrays
by D'Femstar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |