doio.c Can't open bidirectional pipe [Perl_do_open9] open(F, "| true |"); Missing command in piped open [Perl_do_open9] open(F, "| "); Missing command in piped open [Perl_do_open9] open(F, " |"); warn(warn_nl, "open"); [Perl_do_open9] open(F, "true\ncd") close() on unopened filehandle %s [Perl_do_close] $a = "fred";close("$a") tell() on closed filehandle [Perl_do_tell] $a = "fred";$a = tell($a) seek() on closed filehandle [Perl_do_seek] $a = "fred";$a = seek($a,1,1) sysseek() on closed filehandle [Perl_do_sysseek] $a = "fred";$a = seek($a,1,1) warn(warn_uninit); [Perl_do_print] print $a ; -x on closed filehandle %s [Perl_my_stat] close STDIN ; -x STDIN ; warn(warn_nl, "stat"); [Perl_my_stat] stat "ab\ncd" warn(warn_nl, "lstat"); [Perl_my_lstat] lstat "ab\ncd" Use of -l on filehandle %s [Perl_my_lstat] Can't exec \"%s\": %s [Perl_do_aexec5] Can't exec \"%s\": %s [Perl_do_exec3] Filehandle %s opened only for output [Perl_do_eof] my $a = eof STDOUT Mandatory Warnings ALL TODO ------------------ Can't do inplace edit: %s is not a regular file [Perl_nextargv] edit a directory Can't do inplace edit: %s would not be unique [Perl_nextargv] Can't rename %s to %s: %s, skipping file [Perl_nextargv] Can't rename %s to %s: %s, skipping file [Perl_nextargv] Can't remove %s: %s, skipping file [Perl_nextargv] Can't do inplace edit on %s: %s [Perl_nextargv] __END__ # doio.c [Perl_do_open9] use warnings 'io' ; open(F, '|'."$^X -e 1|"); close(F); no warnings 'io' ; open(G, '|'."$^X -e 1|"); close(G); EXPECT Can't open bidirectional pipe at - line 3. ######## # doio.c [Perl_do_open9] use warnings 'io' ; open(F, "| "); no warnings 'io' ; open(G, "| "); EXPECT Missing command in piped open at - line 3. ######## # doio.c [Perl_do_open9] use warnings 'io' ; open(F, " |"); no warnings 'io' ; open(G, " |"); EXPECT Missing command in piped open at - line 3. ######## # doio.c [Perl_do_open9] use warnings 'io' ; open(F, " ; } { no warnings 'inplace' ; local (@ARGV) = ($filename, $dir0, $file3) ; local ($^I) = "" ; my $x = <> ; } { use warnings 'inplace' ; local (@ARGV) = ($filename, $dir0, $file3) ; local ($^I) = "" ; my $x = <> ; } rmdir $filename ; chmod 0777, $dir0 ; rmdir $dir0 ; EXPECT OPTION regex Can't do inplace edit: \./temp\.dir is not a regular file at - line 17\. Can't do inplace edit: \./zero\.dir is not a regular file at - line 17\. Can't open date\|: .*? at - line 17\. Can't do inplace edit: \./temp\.dir is not a regular file at - line 29\. Can't do inplace edit: \./zero\.dir is not a regular file at - line 29\. Can't open date\|: .*? at - line 29\. ######## # doio.c [Perl_do_eof] use warnings 'io' ; my $a = eof STDOUT ; no warnings 'io' ; $a = eof STDOUT ; EXPECT Filehandle STDOUT opened only for output at - line 3. ######## # doio.c [Perl_do_openn] use Config; BEGIN { if ($Config{useperlio}) { print <', \$x; open BAR, '>&', \*STDOUT; # should not warn no warnings 'io'; open FOO, '>', \$x; EXPECT Can't open a reference at - line 14. ######## # doio.c [Perl_do_openn] use Config; BEGIN { if (!$Config{useperlio}) { print <doiowarn.tmp"; close $fh1; no warnings 'io' ; open my $fh2, ">doiowarn.tmp"; close $fh2; unlink "doiowarn.tmp"; EXPECT Filehandle STDIN reopened as $fh1 only for output at - line 14. ######## # doio.c [Perl_do_openn] use Config; use utf8; use open qw( :utf8 :std ); BEGIN { if (!$Config{useperlio}) { print <doiowarn.tmp"; close $ᶠᚻ1; no warnings 'io' ; open my $ᶠᚻ2, ">doiowarn.tmp"; close $ᶠᚻ2; unlink "doiowarn.tmp"; EXPECT Filehandle STDIN reopened as $ᶠᚻ1 only for output at - line 16. ######## # doio.c [Perl_do_openn] use Config; use utf8; use open qw( :utf8 :std ); BEGIN { if (!$Config{useperlio}) { print <doiowarn.tmp"; close ᶠᚻ1; no warnings 'io' ; open ᶠᚻ2, ">doiowarn.tmp"; close ᶠᚻ2; unlink "doiowarn.tmp"; EXPECT Filehandle STDIN reopened as ᶠᚻ1 only for output at - line 16. ######## open(my $i, "foo\0bar"); use warnings 'io'; open(my $i, "foo\0bar"); EXPECT Invalid \0 character in pathname for open: foo\0bar at - line 3. ######## chmod(0, "foo\0bar"); use warnings 'io'; chmod(0, "foo\0bar"); EXPECT Invalid \0 character in pathname for chmod: foo\0bar at - line 3. ######## unlink("foo\0bar", "foo\0bar2"); use warnings 'io'; unlink("foo\0bar", "foo\0bar2"); EXPECT Invalid \0 character in pathname for unlink: foo\0bar at - line 3. Invalid \0 character in pathname for unlink: foo\0bar2 at - line 3. ######## utime(-1, -1, "foo\0bar", "foo\0bar2"); use warnings 'io'; utime(-1, -1, "foo\0bar", "foo\0bar2"); EXPECT Invalid \0 character in pathname for utime: foo\0bar at - line 3. Invalid \0 character in pathname for utime: foo\0bar2 at - line 3. ######## my @foo = glob "foo\0bar"; use warnings 'io'; my @bar = glob "foo\0bar"; EXPECT Invalid \0 character in pattern for glob: foo\0bar at - line 3.