in reply to Using Arrays with Hash key values

Now that you have updated your post and added your code, you need to deference the array:
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

    Ah ok I see thanks for the help its much appreciated!