If you return array reference like my $arr=[1,2,3,4]; return $arr. Then you can achieve what you expect as follows
my $c=@{&sample}[2];
In reply to Re: Skip return values
by vinoth.ree
in thread Skip return values
by jonam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |