3 # $RCSfile: multiline.t,v $$Revision: 4.1 $$Date: 92/08/07 18:27:20 $
7 open(try,'>Comp.try') || (die "Can't open temp file.");
18 $y = 'now is the time' . "\n" .
19 'for all good men' . "\n" .
20 'to come to.' . "\n\n\n!\n\n";
22 if ($x eq $y) {print "ok 1\n";} else {print "not ok 1\n";}
27 open(try,'Comp.try') || (die "Can't reopen temp file.");
35 if ($z eq $y) {print "ok 2\n";} else {print "not ok 2\n";}
37 if ($count == 7) {print "ok 3\n";} else {print "not ok 3\n";}
39 $_ = (($^O eq 'MSWin32') || $^O eq 'NetWare') ? `type Comp.try`
40 : ($^O eq 'MacOS') ? `catenate Comp.try`
43 if (/.*\n.*\n.*\n$/) {print "ok 4\n";} else {print "not ok 4\n";}
45 close(try) || (die "Can't close temp file.");
46 unlink 'Comp.try' || `/bin/rm -f Comp.try`;
48 if ($_ eq $y) {print "ok 5\n";} else {print "not ok 5\n";}