In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/a24e5063e082f524bc799cca6607afc923ee5cbf?hp=470722b48ea05e8267d95479f715193214359722>
- Log ----------------------------------------------------------------- commit a24e5063e082f524bc799cca6607afc923ee5cbf Author: Ricardo Signes <[email protected]> Date: Tue Apr 24 22:51:06 2012 -0400 C<> is not L<> and does not take two |-delim parts reported by Tom Christiansen M pod/perlutil.pod commit 4ce498ef314a992afddda96f72c5c81cddcf90ce Author: Ricardo Signes <[email protected]> Date: Tue Apr 24 22:44:23 2012 -0400 minor unicode doc tweaks reported by Tom Christiansen M lib/unicore/mktables M pod/perlunicode.pod commit b735b77b373b25182762b9b76850586c9d74e2ab Author: Ricardo Signes <[email protected]> Date: Tue Apr 24 22:36:03 2012 -0400 fix some typos in perlsyn.pod (both reported by Tom Christiansen) M pod/perlsyn.pod commit 977616ef47984cde9b564db0b232535501edb738 Author: Ricardo Signes <[email protected]> Date: Tue Apr 24 22:34:32 2012 -0400 point out __SUB__ in perlsub.pod M pod/perlsub.pod commit 58bafa60c4055ae93abdf35dce83f96a7442298f Author: Ricardo Signes <[email protected]> Date: Tue Apr 24 22:23:18 2012 -0400 fix mode used to open /dev/tty in perlop example (Thanks for reporting this, Tom Christiansen!) M pod/perlop.pod ----------------------------------------------------------------------- Summary of changes: lib/unicore/mktables | 3 ++- pod/perlop.pod | 2 +- pod/perlsub.pod | 12 ++++++++++++ pod/perlsyn.pod | 4 ++-- pod/perlunicode.pod | 2 +- pod/perlutil.pod | 2 +- 6 files changed, 19 insertions(+), 6 deletions(-) diff --git a/lib/unicore/mktables b/lib/unicore/mktables index ea3d577..7eba4f9 100644 --- a/lib/unicore/mktables +++ b/lib/unicore/mktables @@ -14697,7 +14697,8 @@ Certain properties are accessible also via core function calls. These are: Uppercase_Mapping uc() Also, Case_Folding is accessible through the C</i> modifier in regular -expressions. +expressions, the C<\\F> transliteration escape, and the C<L<fc|perlfunc/fc>> +operator. And, the Name and Name_Aliases properties are accessible through the C<\\N{}> interpolation in double-quoted strings and regular expressions; and functions diff --git a/pod/perlop.pod b/pod/perlop.pod index 2152f13..7b2d0a3 100644 --- a/pod/perlop.pod +++ b/pod/perlop.pod @@ -1768,7 +1768,7 @@ failure. Examples: - open(TTY, "+>/dev/tty") + open(TTY, "+</dev/tty") || die "can't access /dev/tty: $!"; <TTY> =~ /^y/i && foo(); # do foo if desired diff --git a/pod/perlsub.pod b/pod/perlsub.pod index 9d6fd25..2ab59fe 100644 --- a/pod/perlsub.pod +++ b/pod/perlsub.pod @@ -220,6 +220,18 @@ is partly for historical reasons, and partly for having a convenient way to cheat if you know what you're doing. See L</Prototypes> below. X<&> +Since Perl 5.16.0, the C<__SUB__> token is available under C<use feature +'current_sub'> and C<use 5.16.0>. It will evaluate to a reference to the +currently sub, which allows for recursive calls without knowing your +subroutine's name. + + use 5.16.0; + my $factorial = sub { + my ($x) = @_; + return 1 if $x == 1; + return($x * __SUB__->( $x - 1 ) ); + }; + Subroutines whose names are in all upper case are reserved to the Perl core, as are modules whose names are in all lower case. A subroutine in all capitals is a loosely-held convention meaning it will be called diff --git a/pod/perlsyn.pod b/pod/perlsyn.pod index 9cceac0..3bebeec 100644 --- a/pod/perlsyn.pod +++ b/pod/perlsyn.pod @@ -714,7 +714,7 @@ binary flip-flop C<...> operator. One is a statement and the other an operator. (Perl doesn't usually confuse them because usually Perl can tell whether it wants an operator or a statement, but see below for exceptions.) -When Perl 5.12 or later encounters an ellipses statement, it parses this +When Perl 5.12 or later encounters an ellipsis statement, it parses this without error, but if and when you should actually try to execute it, Perl throws an exception with the text C<Unimplemented>: @@ -1205,7 +1205,7 @@ differences between Perl 6's and Perl 5's data models, but also because the Perl 6 spec has changed since Perl 5 rushed into early adoption. In Perl 6, C<when()> will always do an implicit smartmatch with its -argument, while in Perl 5 it is convenient albeit potentially confusing) to +argument, while in Perl 5 it is convenient (albeit potentially confusing) to suppress this implicit smartmatch in various rather loosely-defined situations, as roughly outlined above. (The difference is largely because Perl 5 does not have, even internally, a boolean type.) diff --git a/pod/perlunicode.pod b/pod/perlunicode.pod index 97f800b..adaa099 100644 --- a/pod/perlunicode.pod +++ b/pod/perlunicode.pod @@ -1027,7 +1027,7 @@ But in this particular example, you probably really want which will match assigned characters known to be part of the Greek script. -Also see the L<Unicode::Regex::Set> module, it does implement the full +Also see the L<Unicode::Regex::Set> module; it does implement the full UTS#18 grouping, intersection, union, and removal (subtraction) syntax. [b] '+' for union, '-' for removal (set-difference), '&' for intersection diff --git a/pod/perlutil.pod b/pod/perlutil.pod index 1cc381c..040f51d 100644 --- a/pod/perlutil.pod +++ b/pod/perlutil.pod @@ -66,7 +66,7 @@ utility will look for errors in your markup. F<splain> is an interface to L<perldiag> - paste in your error message to it, and it'll explain it for you. -=item C<roffitall|roffitall> +=item C<roffitall> The C<roffitall> utility is not installed on your system but lives in the F<pod/> directory of your Perl source kit; it converts all the -- Perl5 Master Repository
