3 # $RCSfile: for.t,v $$Revision: 4.1 $$Date: 92/08/07 18:27:09 $
7 for ($i = 0; $i <= 10; $i++) {
11 print "#1 :$y: eq :10:\n";
13 print "#1 :$y: eq :0 1 2 3 4 5 6 7 8 9 10:\n";
14 if (join(' ', @x) eq '0 1 2 3 4 5 6 7 8 9 10') {
25 if ($c == 12) {print "ok 2\n";} else {print "not ok 2\n";}
32 if (join('',@ary) eq '246810') {print "ok 3\n";} else {print "not ok 3\n";}
40 # test for internal scratch array generation
41 # this also tests that $foo was restored to 3210 after test 3
42 for (split(' ','a b c d e')) {
45 if ($foo eq '3210abcde') {print "ok 5\n";} else {print "not ok 5 $foo\n";}
47 foreach $foo (("ok 6\n","ok 7\n")) {