From 22d6fc577355e4dd6bdf9b73caa59e166dc89976 Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Fri, 23 Dec 2011 14:45:30 -0800 Subject: [PATCH] Update a perldiag entry for 5.16 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit I’m not deleting it, as one may run error messages from an older perl through a newer splain. --- pod/perldiag.pod | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 609d7cb..eb2971e 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -5291,15 +5291,14 @@ The operation returned C. Use a filename instead. =item Use of %s on a handle without * is deprecated -(D deprecated) You used C, C or C on a scalar but that -scalar happens to hold a typeglob, which means its filehandle will -be tied. If you mean to tie a handle, use an explicit * as in -C. - -This is a long-standing bug that will be removed in Perl 5.16, as -there is currently no way to tie the scalar itself when it holds -a typeglob, and no way to untie a scalar that has had a typeglob -assigned to it. +(D deprecated) You used C, C or C on a scalar but that scalar +happens to hold a typeglob, which means its filehandle will be tied. If +you mean to tie a handle, use an explicit * as in C. + +This was a long-standing bug that was removed in Perl 5.16, as there was +no way to tie the scalar itself when it held a typeglob, and no way to +untie a scalar that had had a typeglob assigned to it. If you see this +message, you must be using an older version. =item Use of ?PATTERN? without explicit operator is deprecated -- 2.7.4