in reply to Trouble getting size of list returned from sub
this can also work:
my $n = () = bad(); print $n; #print 4 sub bad { return qw/foo bar baz timon/; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Trouble getting size of list returned from sub
by TomDLux (Vicar) on Nov 30, 2012 at 02:31 UTC |