in reply to Re^3: Scalar Vs. List context
in thread Scalar Vs. List context

You only showed that it can be evaluated in list context. Why did you ignore my snippet which showed how it can be called in scalar and void context?

sub foo { print "wantarray? ", wantarray?1:0, "\n"; } my @x =(foo(),foo(), foo()); my $x =(foo(),foo(), foo());
wantarray? 1 wantarray? 1 wantarray? 1 wantarray? 0 wantarray? 0 wantarray? 0