5 my ( $cona, $testnum ) = @_;
6 my $conb = (defined wantarray) ? ( wantarray ? 'A' : 'S' ) : 'V';
7 unless ( $cona eq $conb ) {
8 print "# Context $conb should be $cona\nnot ";
10 print "ok $testnum\n";
16 scalar context('S',4);
17 $a = scalar context('S',5);
18 ($a) = context('A',6);
19 ($a) = scalar context('S',7);