From: Father Chrysostomos Date: Fri, 19 Oct 2007 20:25:38 +0000 (-0700) Subject: perlfunc/perldiag errors X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cc1c2e42fe4d1a61c9d2d0f948f8827f7373160a;p=p5sagit%2Fp5-mst-13.2.git perlfunc/perldiag errors Message-Id: <8186DA53-970C-4A10-A0CE-0A4FFB199A01@cpan.org> p4raw-id: //depot/perl@32149 --- diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 376c035..3434cd7 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -133,18 +133,21 @@ for example, turn C<-w -U> into C<-wU>. =item %s argument is not a HASH or ARRAY element -(F) The argument to exists() must be a hash or array element, such as: +(F) The argument to exists() must be a hash or array element or a +subroutine with an ampersand, such as: $foo{$bar} $ref->{"susie"}[12] + &do_something =item %s argument is not a HASH or ARRAY element or slice -(F) The argument to delete() must be either a hash or array element, -such as: +(F) The argument to delete() must be either a hash or array element or a +subroutine name, such as: $foo{$bar} $ref->{"susie"}[12] + &do_something or a hash or array slice, such as: diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index f3454b4..f954aa2 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -644,7 +644,7 @@ call, but an C. In such a case additional elements $evaltext and C<$is_require> are set: C<$is_require> is true if the frame is created by a C or C statement, $evaltext contains the text of the C statement. In particular, for an C statement, -$filename is C<(eval)>, but $evaltext is undefined. (Note also that +$subroutine is C<(eval)>, but $evaltext is undefined. (Note also that each C statement creates a C frame inside an C frame.) $subroutine may also be C<(unknown)> if this particular subroutine happens to have been deleted from the symbol table.