You might want to use:
my $a={'a',1,'b',2,'c',3}; print for @$a{'a','b'}; # note the extra $ [download]
In reply to Re: Slicing Hash References by mirod in thread Slicing Hash References by Tyke