use warnings; use strict; my $item_to_push = 'foo'; my @array = ('derp'); push(@array, $item_to_push); my %names; $names{'bill'} = [@array]; print "@{ $names{'bill'} }"; print "\n"; __END__ derp foo
See also tip #4 from the Basic debugging checklist: Data::Dumper
In reply to Re: Using Arrays with Hash key values
by toolic
in thread Using Arrays with Hash key values
by JohnTabor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |