diff options
author | Spider Boardman <spider@orb.nashua.nh.us> | 1999-08-28 23:02:11 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-08-29 11:10:33 +0000 |
commit | 09bef84370e90d727656ea11ba5ee8be80e361d3 (patch) | |
tree | a3be55423863d0b8aa13316472ce65fd1007390f /pod/perlfunc.pod | |
parent | 34d1710f50a396dda66d4f7a7ffb73f6cc80cf01 (diff) | |
download | perl-09bef84370e90d727656ea11ba5ee8be80e361d3.tar.gz |
sub : attrlist
To: Mailing list Perl5 <perl5-porters@perl.org>
Message-Id: <199908290702.DAA32191@Orb.Nashua.NH.US>
p4raw-id: //depot/cfgperl@4043
Diffstat (limited to 'pod/perlfunc.pod')
-rw-r--r-- | pod/perlfunc.pod | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 004c0f47cc..d420059d4c 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -2366,6 +2366,8 @@ there is an error. See also C<IPC::SysV> and C<IPC::SysV::Msg> documentation. =item my EXPR +=item my EXPR : ATTRIBUTES + A C<my> declares the listed variables to be local (lexically) to the enclosing block, file, or C<eval>. If more than one value is listed, the list must be placed in parentheses. See @@ -4338,10 +4340,10 @@ out the names of those files that contain a match: =item sub NAME BLOCK This is subroutine definition, not a real function I<per se>. With just a -NAME (and possibly prototypes), it's just a forward declaration. Without -a NAME, it's an anonymous function declaration, and does actually return a -value: the CODE ref of the closure you just created. See L<perlsub> and -L<perlref> for details. +NAME (and possibly prototypes or attributes), it's just a forward declaration. +Without a NAME, it's an anonymous function declaration, and does actually +return a value: the CODE ref of the closure you just created. See L<perlsub> +and L<perlref> for details. =item substr EXPR,OFFSET,LENGTH,REPLACEMENT |