You can't use push with a hash. But you can use push with an array reference if you dereference it first.
$arrays{bart} = [ 1, 2, 3 ]; push @{$arrays{bart}}, 4, 5;
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re^3: Variable naming of Arrays
by davorg
in thread Variable naming of Arrays
by stellagoddc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |