my $val = (func())[1];
Put the function call (with parens, and without ampersand) in parens, and index that list...
In reply to Re: index into list returned by subroutine
by herveus
in thread index into list returned by subroutine
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |