in reply to Re: How to get a slice of hash ref that a sub returns.
in thread How to get a slice of hash ref that a sub returns.
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"};
|
|---|