in reply to Slicing Hash References

You might want to use:

my $a={'a',1,'b',2,'c',3}; print for @$a{'a','b'}; # note the extra $

Replies are listed 'Best First'.
Re: Re: Slicing Hash References
by Tyke (Pilgrim) on Mar 01, 2001 at 17:14 UTC
    Thankyou good Sir. *That's* what I was looking for! I've been working with -> too long to see such a simple solution ;}