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 reply to Re^4: non-scalar hash key
by McDarren
in thread non-scalar hash key
by kdejonghe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |