A little experimentation got me the following (somewhat scary) result:
It does work ...use strict; sub flab { my @r = ( 1 .. 10 ); wantarray ? @r : \@r; } print "flab has ", scalar @{flab()}, " entries\n";
In reply to Re: Confused Contexts and wantarray
by Tanktalus
in thread Confused Contexts and wantarray
by Dr. Mu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |