RFC: what are applicable standards for exponent sizes?
[p5sagit/p5-mst-13.2.git] / t / comp / script.t
CommitLineData
8d063cd8 1#!./perl
2
79072805 3# $RCSfile: script.t,v $$Revision: 4.1 $$Date: 92/08/07 18:27:23 $
8d063cd8 4
5print "1..3\n";
6
95e8664e 7$PERL = ($^O eq 'MSWin32') ? '.\perl'
2986a63f 8 : (($^O eq 'NetWare') ? 'perl'
9 : ($^O eq 'MacOS') ? $^X : './perl');
68dc0745 10$x = `$PERL -le "print 'ok';"`;
8d063cd8 11
12if ($x eq "ok\n") {print "ok 1\n";} else {print "not ok 1\n";}
13
14open(try,">Comp.script") || (die "Can't open temp file.");
15print try 'print "ok\n";'; print try "\n";
16close try;
17
68dc0745 18$x = `$PERL Comp.script`;
8d063cd8 19
20if ($x eq "ok\n") {print "ok 2\n";} else {print "not ok 2\n";}
21
68dc0745 22$x = `$PERL <Comp.script`;
8d063cd8 23
24if ($x eq "ok\n") {print "ok 3\n";} else {print "not ok 3\n";}
25
a0d0e21e 26unlink 'Comp.script' || `/bin/rm -f Comp.script`;