G'day wanna_code_perl,
You can achieve this by wrapping bad() in @{[...]}.
$ perl -Mstrict -Mwarnings -E ' sub bad { qw/foo bar baz/ } say scalar bad(); say scalar @{[bad()]}; ' baz 3
-- Ken
In reply to Re: Trouble getting size of list returned from sub
by kcott
in thread Trouble getting size of list returned from sub
by wanna_code_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |