@ar=[1..10];
%hash=(a=>1,b=>4,c=>7);
$j=1|2|3;
$k="a"|"c";
$u = @ar[$j]; # 2|3|4
$v = %hash{$k}; # 1|7
Does this make sense to others?
David
Well, if we replaced @ar[$j] with, say, @ar.get($j), what you're
proposing happens automatically. So I think that it's the right thing
to do.
Luke