in reply to Re^3: non-scalar hash key
in thread non-scalar hash key
ah, okay.
Well, a reference to an array is a scalar. So, perhaps something like:
prints:my @foo = qw/1 2 3 4 5 6/; my %bar = ( \@foo => 'elephants', ); my $zonk = \@foo; print "$bar{$zonk}\n";
elephants
Cheers,
Darren :)
In Section
Seekers of Perl Wisdom