3 # $RCSfile: script.t,v $$Revision: 4.1 $$Date: 92/08/07 18:27:23 $
7 $PERL = ($^O eq 'MSWin32') ? '.\perl'
8 : (($^O eq 'NetWare') ? 'perl'
9 : ($^O eq 'MacOS') ? $^X : './perl');
10 $x = `$PERL -le "print 'ok';"`;
12 if ($x eq "ok\n") {print "ok 1\n";} else {print "not ok 1\n";}
14 open(try,">Comp.script") || (die "Can't open temp file.");
15 print try 'print "ok\n";'; print try "\n";
18 $x = `$PERL Comp.script`;
20 if ($x eq "ok\n") {print "ok 2\n";} else {print "not ok 2\n";}
22 $x = `$PERL <Comp.script`;
24 if ($x eq "ok\n") {print "ok 3\n";} else {print "not ok 3\n";}
26 unlink 'Comp.script' || `/bin/rm -f Comp.script`;