this can also work:
my $n = () = bad(); print $n; #print 4 sub bad { return qw/foo bar baz timon/; }
In reply to Re: Trouble getting size of list returned from sub
by 2teez
in thread Trouble getting size of list returned from sub
by wanna_code_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |