This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perldiag.pod - Document "Filehandle .. reopened for input"
authorYves Orton <demerphq@gmail.com>
Tue, 6 Sep 2022 09:09:05 +0000 (11:09 +0200)
committerYves Orton <demerphq@gmail.com>
Thu, 8 Sep 2022 05:55:45 +0000 (07:55 +0200)
I wanted to see why a given diagnostics was not listed in perldiag.pod,
so I documented it. Turns out it was in the TODO list. :-)

pod/perldiag.pod
t/porting/diag.t

index e1f86cd..42f041c 100644 (file)
@@ -2415,6 +2415,11 @@ previously.
 (W io) You opened for writing a filehandle that got the same filehandle id
 as STDIN.  This occurred because you closed STDIN previously.
 
+=item Filehandle STD%s reopened as %s only for input
+
+(W io) You opened for reading a filehandle that got the same filehandle id
+as STDOUT or STDERR.  This occurred because you closed the handle previously.
+
 =item Final $ should be \$ or $name
 
 (F) You must now decide whether the final $ in a string was meant to be
index cf2851c..fc34c6b 100644 (file)
@@ -601,7 +601,6 @@ Error reading "%s": %s
 EVAL without pos change exceeded limit in regex
 Filehandle opened only for %sput
 Filehandle %s opened only for %sput
-Filehandle STD%s reopened as %s only for input
 file_type not implemented on DOS
 filter_del can only delete in reverse order (currently)
 fork() not available