10 @a = (1,2,3,4,5,6,7,8,9,10,11,12);
12 while ($_ = shift(@a)) {
13 if ($x = /4/../8/) { $z = $x; push @b, $x + 0; }
16 is(join("*", @b), "1*2*3*4*5");
22 @a = ('a','b','c','d','e','f','g');
27 open(of,'harness') or die "Can't open harness: $!";
29 (3 .. 5) && ($foo .= $_);
31 $x = ($foo =~ y/\n/\n/);
39 # coredump reported in bug 20001018.008
52 $SIG{__WARN__} = sub { $warn .= join '', @_ };
56 like($warn, qr/uninitialized/);
61 ok((() = ($warn =~ /isn't numeric/g)) == 2);
67 push @_, \scalar(0..0) for 1,2;
68 isnt $_[0], $_[1], '\scalar($a..$b) gives a different scalar each time';