In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/ede3a6167fdc98bf29305444db6ff93c33d8155d?hp=1f3ebc3b353ab41acc3013ef04412dda481b4282>

- Log -----------------------------------------------------------------
commit ede3a6167fdc98bf29305444db6ff93c33d8155d
Author: David Golden <[email protected]>
Date:   Wed Jun 9 11:47:41 2010 -0400

    added Chas. Owens to AUTHORS

M       AUTHORS

commit 7f315d2e5ecf9c2453606c348568dc73e5e4d390
Author: Chas. Owens <[email protected]>
Date:   Wed Jun 9 11:43:46 2010 -0400

    Document $# and $* as removed
    
    See email thread for reference:
    
    http://www.nntp.perl.org/group/perl.perl5.porters/2010/06/msg160812.html

M       pod/perlvar.pod
-----------------------------------------------------------------------

Summary of changes:
 AUTHORS         |    1 +
 pod/perlvar.pod |   39 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+), 0 deletions(-)

diff --git a/AUTHORS b/AUTHORS
index b8bb0b8..3de9b7f 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -171,6 +171,7 @@ Charles F. Randall          <[email protected]>
 Charles Lane                   <[email protected]>
 Charles Randall                        <[email protected]>
 Charles Wilson                 <[email protected]>
+Chas. Owens                    <[email protected]>
 Chaskiel M Grundman
 Chia-liang Kao                 <[email protected]>
 Chip Salzenberg                        <[email protected]>
diff --git a/pod/perlvar.pod b/pod/perlvar.pod
index ed90610..0b31330 100644
--- a/pod/perlvar.pod
+++ b/pod/perlvar.pod
@@ -1629,6 +1629,45 @@ L<warnings> for additional information.
 
 =back
 
+=head2 Names that are no longer special
+
+These variables had special meaning in prior versions of Perl but now
+have no effect and will cause warnings if used.  They are included
+here for historical reference.
+
+=over 8
+
+=item $#
+X<$#>
+
+C<$#> used to be a variable that could be used to format printed numbers.
+After a deprecation cycle, its magic was removed in Perl 5.10 and using it
+now triggers a warning: C<$# is no longer supported>.
+
+C<$#> is also used as sigil, which, when prepended on the name of an
+array, gives the index of the last element in that array.
+
+    my @array        = ("a", "b", "c");
+    my $last_index   = $#array;   # $last_index is 2
+
+    for my $i (0 .. $#array) {
+        print "The value of index $i is $array[$i]\n";
+    }
+
+Also see L<perldata>.
+
+=item $*
+X<$*>
+
+C<$*> used to be a variable that enabled multiline matching.
+After a deprecation cycle, its magic was removed in Perl 5.10.
+Using it now triggers a warning: C<$* is no longer supported>.
+Use the C</s> and C</m> regexp modifiers instead.
+
+Also see L<perlre>.
+
+=back
+
 =head2 Error Indicators
 X<error> X<exception>
 

--
Perl5 Master Repository

Reply via email to