in reply to Hash-slicing question...

I like ozone's answer because you're not actually asking for a slice of the hash. You want the values and the keys to pass to your function. So you actually want a subset of the original hash. Use map().

If you just wanted values, you could say:

@{$hashRef}{qw(A B C D)}
and that's an honest slice.