perl 1.0 patch 1: Portability bugs and one possible SIGSEGV
[p5sagit/p5-mst-13.2.git] / t / comp.script
CommitLineData
8d063cd8 1#!./perl
2
3# $Header: comp.script,v 1.0 87/12/18 13:12:36 root Exp $
4
5print "1..3\n";
6
7$x = `./perl -e 'print "ok\n";'`;
8
9if ($x eq "ok\n") {print "ok 1\n";} else {print "not ok 1\n";}
10
11open(try,">Comp.script") || (die "Can't open temp file.");
12print try 'print "ok\n";'; print try "\n";
13close try;
14
15$x = `./perl Comp.script`;
16
17if ($x eq "ok\n") {print "ok 2\n";} else {print "not ok 2\n";}
18
19$x = `./perl <Comp.script`;
20
21if ($x eq "ok\n") {print "ok 3\n";} else {print "not ok 3\n";}
22
23`/bin/rm -f Comp.script`;