open my $fh, '<', $filename or die $!;
binmode( $fh, ':raw' );
my $content = <$fh>;
- is( $content, ascii_string(), 'Data written to file is there when we look for it later' );
+ is( $content, ascii_string(), 'Data written to file is there when we look for it later' );
}
{
{
my ($dir, $file) = make_bad_file_3();
run_ok( "all_perl_files_ok( '$file' )",
- qr/^not ok 1 - No incorrect line endings in '[^']*' \Qon line 9: [\r][\r][\r]/m,
+ qr/^not ok 1 - No incorrect line endings in '[^']*' \Qon line 1: [\r] /m,
'windows EOL found in tmp file 3' );
}
unlink $outfile;
}
-sub ascii_string {
+sub ascii_string {
my $o = "<before \r\n between \r\n after \n normal >";
return $o x 3;
}
-sub make_raw_badfile {
- my $tmpdir = tempdir( CLEANUP => 1 );
- my ( $fh, $filename ) = tempfile( DIR => $tmpdir, SUFFIX => '.tXt' );
+sub make_raw_badfile {
+ my $tmpdir = tempdir( CLEANUP => 1 );
+ my ( $fh, $filename ) = tempfile( DIR => $tmpdir, SUFFIX => '.tXt' );
binmode $fh, ':raw';
print $fh ascii_string();
close $fh;
my (\$class) = \@_;\r
my \$self = bless { }, \$class;\r
return \$self;\r
-}\r\r\r\r
-
+}\r
+\r
\r
1;\r
DUMMY