sub x { return {qw(a b c d)}; } print @{%{x()}}->{"a","b"};
While this does:
How would I get a slice?sub x { return {qw(a b c d)}; } print %{x()}->{"a"};
In reply to How to get a slice of hash ref that a sub returns. by dmitri
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |