projects
/
p5sagit/p5-mst-13.2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
0a47b6d3ba0b16da9d67f26ba7a54b9479601d1d
[p5sagit/p5-mst-13.2.git]
/
t
/
op
/
wantarray.t
1
#!./perl
2
3
print "1..3\n";
4
sub context {
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 ";
9
}
10
print "ok $testnum\n";
11
}
12
13
context('V',1);
14
$a = context('S',2);
15
@a = context('A',3);
16
1;