diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2004-02-03 21:54:23 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2004-02-03 21:54:23 +0000 |
commit | a4fb829857308f846c16fee81060adc844317666 (patch) | |
tree | a16b1b79fa4df04e7e63b63e4e97543018302e5c /pod/perlsub.pod | |
parent | 137d6fc09ef3595c225f4474cf527a89e2099776 (diff) | |
download | perl-a4fb829857308f846c16fee81060adc844317666.tar.gz |
More docs and tests for "my $_".
p4raw-id: //depot/perl@22265
Diffstat (limited to 'pod/perlsub.pod')
-rw-r--r-- | pod/perlsub.pod | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pod/perlsub.pod b/pod/perlsub.pod index 969d0ba039..e830130a55 100644 --- a/pod/perlsub.pod +++ b/pod/perlsub.pod @@ -588,6 +588,8 @@ separator. Notably, if you want to work with a brand new value of the default scalar $_, and avoid the potential problem listed above about $_ previously carrying a magic value, you should use C<local *_> instead of C<local $_>. +As of perl 5.9.1, you can also use the lexical form of C<$_> (declaring it +with C<my $_>), which avoids completely this problem. =head3 Localization of elements of composite types |