In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/245490700bb744b58c708516d2d3c08f18583dc3?hp=7bb03b244ea39557983e72f3dba06036ffe96821>
- Log ----------------------------------------------------------------- commit 245490700bb744b58c708516d2d3c08f18583dc3 Author: Paul Gaborit <[email protected]> Date: Wed Mar 18 09:19:48 2009 +0100 Doc fix: the /k regexp modifier should really be written /p M pod/perlretut.pod commit 6210e03fb1e3d8a3e81d83ab75e0db0d050fc703 Author: Rafael Garcia-Suarez <[email protected]> Date: Wed Mar 18 09:18:58 2009 +0100 Fix typo in English name of $& M pod/perlvar.pod ----------------------------------------------------------------------- Summary of changes: pod/perlretut.pod | 6 +++--- pod/perlvar.pod | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pod/perlretut.pod b/pod/perlretut.pod index 67e0670..0a2d563 100644 --- a/pod/perlretut.pod +++ b/pod/perlretut.pod @@ -2133,8 +2133,8 @@ example is This style of commenting has been largely superseded by the raw, freeform commenting that is allowed with the C<//x> modifier. -The modifiers C<//i>, C<//m>, C<//s>, C<//x> and C<//k> (or any -combination thereof) can also embedded in +The modifiers C<//i>, C<//m>, C<//s> and C<//x> (or any +combination thereof) can also be embedded in a regexp using C<(?i)>, C<(?m)>, C<(?s)>, and C<(?x)>. For instance, /(?i)yes/; # match 'yes' case insensitively @@ -2159,7 +2159,7 @@ that must have different modifiers: } } -The second advantage is that embedded modifiers (except C<//k>, which +The second advantage is that embedded modifiers (except C<//p>, which modifies the entire regexp) only affect the regexp inside the group the embedded modifier is contained in. So grouping can be used to localize the modifier's effects: diff --git a/pod/perlvar.pod b/pod/perlvar.pod index 9be3bc1..914eebe 100644 --- a/pod/perlvar.pod +++ b/pod/perlvar.pod @@ -241,7 +241,7 @@ See L</@-> for a replacement. =item ${^MATCH} X<${^MATCH}> -This is similar to C<$&> (C<$POSTMATCH>) except that it does not incur the +This is similar to C<$&> (C<$MATCH>) except that it does not incur the performance penalty associated with that variable, and is only guaranteed to return a defined value when the pattern was compiled or executed with the C</p> modifier. -- Perl5 Master Repository
