11 my $filename = tempfile();
12 open(TRY,'>',$filename) || (die "Can't open $filename: $!");
23 $y = 'now is the time' . "\n" .
24 'for all good men' . "\n" .
25 'to come to.' . "\n\n\n!\n\n";
27 is($x, $y, 'test data is sane');
30 close TRY or die "Could not close: $!";
32 open(TRY,$filename) || (die "Can't reopen $filename: $!");
40 is($z, $y, 'basic multiline reading');
42 is($count, 7, ' line count');
45 $out = (($^O eq 'MSWin32') || $^O eq 'NetWare') ? `type $filename`
46 : ($^O eq 'VMS') ? `type $filename.;0` # otherwise .LIS is assumed
49 like($out, qr/.*\n.*\n.*\n$/);
51 close(TRY) || (die "Can't close $filename: $!");