You can drop the %{}:
I find that references quick reference makes this stuff easy to remember. - tye (but my friends call me "Tye")sub x { return {qw(a b c d)}; } print @{x()}{"a","c"};
In reply to (tye)Re: How to get a slice of hash ref that a sub returns.
by tye
in thread How to get a slice of hash ref that a sub returns.
by dmitri
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |