perlfunc/perldiag errors
authorFather Chrysostomos <sprout@cpan.org>
Fri, 19 Oct 2007 20:25:38 +0000 (13:25 -0700)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Sat, 20 Oct 2007 15:04:44 +0000 (15:04 +0000)
Message-Id: <8186DA53-970C-4A10-A0CE-0A4FFB199A01@cpan.org>

p4raw-id: //depot/perl@32149

pod/perldiag.pod
pod/perlfunc.pod

index 376c035..3434cd7 100644 (file)
@@ -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:
 
index f3454b4..f954aa2 100644 (file)
@@ -644,7 +644,7 @@ call, but an C<eval>.  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<require> or C<use> statement, $evaltext contains the text of the
 C<eval EXPR> statement.  In particular, for an C<eval BLOCK> 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<use> statement creates a C<require> frame inside an C<eval EXPR>
 frame.)  $subroutine may also be C<(unknown)> if this particular
 subroutine happens to have been deleted from the symbol table.