13 { my($a, undef, $c) = ("ok 9\n", "not ok 10\n", "ok 10\n");
14 ($x, $y) = ($a, $c); }
24 print &foo("ok 1\n","ok 2\n");
26 print $a,$b,$c,$d,$x,$y;
28 # same thing, only with arrays and associative arrays
35 { my($a,@c) = ("ok 19\n", "ok 20\n"); ($x, $y) = ($a, @c); }
45 print &foo2("ok 11\n","ok 12\n");
47 print $a,@b,@c,%d,$x,$y;
51 if (my $i = "inner") {
52 print "not " if $i ne "inner";
56 if ((my $i = 1) == 0) {
60 print "not" if $i != 1;
65 while (my $i = --$j) {
66 print("not "), last unless $i > 0;
69 print("not "), last unless $i > 0;
74 for (my $i = 0; (my $k = $i) < $j; ++$i) {
75 print("not "), last unless $i >= 0 && $i < $j && $i == $k;
78 print "not " if defined $k;
81 foreach my $i (26, 27) {
85 print "not " if $i ne "outer";
88 # Ensure that C<my @y> (without parens) doesn't force scalar context.
91 print +(@x ? "not " : ""), "ok 29\n";
93 print +(@x ? "not " : ""), "ok 30\n";
95 # Found in HTML::FormatPS
96 my %fonts = qw(nok 31);
97 for my $full (keys %fonts) {
99 # Supposed to be copy-on-write via force_normal after a THINKFIRST check.
100 print "$full $fonts{nok}\n";