This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Doc tweak for perl #9731.
authorJarkko Hietaniemi <jhi@iki.fi>
Wed, 27 Nov 2002 03:14:22 +0000 (03:14 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 27 Nov 2002 03:14:22 +0000 (03:14 +0000)
p4raw-id: //depot/maint-5.8/perl@18192

pod/perldiag.pod

index 0b989a7..e4f0266 100644 (file)
@@ -1517,17 +1517,19 @@ PDP-11 or something?
 
 =item Filehandle %s opened only for input
 
-(W io) You tried to write on a read-only filehandle.  If you intended it
-to be a read-write filehandle, you needed to open it with "+<" or "+>"
-or "+>>" instead of with "<" or nothing.  If you intended only to write
-the file, use ">" or ">>".  See L<perlfunc/open>.
+(W io) You tried to write on a read-only filehandle.  If you intended
+it to be a read-write filehandle, you needed to open it with "+<" or
+"+>" or "+>>" instead of with "<" or nothing.  If you intended only to
+write the file, use ">" or ">>".  See L<perlfunc/open>.
 
 =item Filehandle %s opened only for output
 
-(W io) You tried to read from a filehandle opened only for writing.
-If you intended it to be a read/write filehandle, you needed to open it
+(W io) You tried to read from a filehandle opened only for writing, If
+you intended it to be a read/write filehandle, you needed to open it
 with "+<" or "+>" or "+>>" instead of with "<" or nothing.  If you
 intended only to read from the file, use "<".  See L<perlfunc/open>.
+Another possibility is that you attempted to open filedescriptor 0
+(also known as STDIN) for output (maybe you closed STDIN earlier?).
 
 =item Filehandle %s reopened as %s only for input