From 89a1bda89871255eb18469299e7a50fa1022fb39 Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Sun, 13 Feb 2011 14:12:53 -0800 Subject: [PATCH] perldiag: copy/paste error MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit When the ‘Filehandle opened only for output’ message is displayed, the user is trying to read from the handle, so saying ‘instead of "<" or nothing’ does not make sense, as it would not have produced the error. --- pod/perldiag.pod | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 35104fd..52f4583 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -1821,10 +1821,10 @@ write the file, use ">" or ">>". See L. (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. -Another possibility is that you attempted to open filedescriptor 0 -(also known as STDIN) for output (maybe you closed STDIN earlier?). +with "+<" or "+>" or "+>>" instead of with ">". If you intended only to +read from the file, use "<". See L. 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 -- 1.8.3.1