in reply to How to get a slice of hash ref that a sub returns.
sub x { return {qw(a b c d)}; } print @{%{x()}}{"a","c"};
The trick was to kill the arrow (even though I am not yet sure why).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: How to get a slice of hash ref that a sub returns.
by tye (Sage) on Apr 18, 2002 at 21:56 UTC |