In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/ae7a3cfaa7c05d7537a57944fcd3d1eec4080d3e?hp=a636ff160adfade25b615b2e632590a3763b285c>

- Log -----------------------------------------------------------------
commit ae7a3cfaa7c05d7537a57944fcd3d1eec4080d3e
Author: Father Chrysostomos <[email protected]>
Date:   Mon Sep 20 22:29:03 2010 -0700

    [perl #47365] Docs for \$ prototypes
    
    \$ allows any hash/array element, even if it does not start with a
    dollar sign.
-----------------------------------------------------------------------

Summary of changes:
 pod/perlsub.pod |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/pod/perlsub.pod b/pod/perlsub.pod
index 93f6e5f..9121519 100644
--- a/pod/perlsub.pod
+++ b/pod/perlsub.pod
@@ -1093,9 +1093,12 @@ corresponding built-in.
     sub mytime ()           mytime
 
 Any backslashed prototype character represents an actual argument
-that absolutely must start with that character.  The value passed
-as part of C<@_> will be a reference to the actual argument given
-in the subroutine call, obtained by applying C<\> to that argument.
+that must start with that character (optionally preceded by C<my>,
+C<our> or C<local>), with the exception of C<$>, which will accept a
+hash or array element even without a dollar sign, such as
+C<my_function()->[0]>. The value passed as part of C<@_> will be a
+reference to the actual argument given in the subroutine call,
+obtained by applying C<\> to that argument.
 
 You can also backslash several argument types simultaneously by using
 the C<\[]> notation:

--
Perl5 Master Repository

Reply via email to