11 open(TRY,'>Comp.try') || (die "Can't open temp file.");
22 $y = 'now is the time' . "\n" .
23 'for all good men' . "\n" .
24 'to come to.' . "\n\n\n!\n\n";
26 is($x, $y, 'test data is sane');
31 open(TRY,'Comp.try') || (die "Can't reopen temp file.");
39 is($z, $y, 'basic multiline reading');
41 is($count, 7, ' line count');
44 $out = (($^O eq 'MSWin32') || $^O eq 'NetWare' || $^O eq 'VMS') ? `type Comp.try`
45 : ($^O eq 'MacOS') ? `catenate Comp.try`
48 like($out, qr/.*\n.*\n.*\n$/);
50 close(TRY) || (die "Can't close temp file.");
51 unlink 'Comp.try' || `/bin/rm -f Comp.try`;