I have a hash like so:
my %h = ( a => { one => 1,
two => 2
},
b => { three => 3,
four => 4
},
c => { five => 5,
six => 6
}
);
print join(',', @{$h{a}{qw/one two/}});
The error I get is: Can't use an undefined value as an ARRAY reference at q.pl line 17 which is the line with the print.
What I expected is 1,2