flip.t revision 7c478bd95313f5f23a4c958a745db2134aa03244
#!./perl
# $RCSfile: flip.t,v $$Revision: 4.1 $$Date: 92/08/07 18:27:52 $
chdir 't' if -d 't';
print "1..15\n";
@a = (1,2,3,4,5,6,7,8,9,10,11,12);
while ($_ = shift(@a)) {
if ($x = /4/../8/) { $z = $x; print "ok ", $x + 0, "\n"; }
$y .= /1/../2/;
}
@a = ('a','b','c','d','e','f','g');
{
local $.;
}
$x = 3.14;
{
# coredump reported in bug 20001018.008
$. = 1;
$x = 1..10;
print "ok 10\n";
}
}
use warnings;
if (0..2) { print "ok 12\n" } else { print "not ok 12\n" }
$x = "foo".."bar";
print "ok 14\n"
}
else {
print "not ok 14\n"
}
$warn = '';
$. = 15;
if (15..0) { print "ok 15\n" } else { print "not ok 15\n" }