in reply to Using Arrays with Hash key values
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using Arrays with Hash key values
by JohnTabor (Novice) on Oct 03, 2013 at 01:55 UTC |