X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlvar.pod;h=c3adfa0a1008f4f8c41bbc904e797f556ac82828;hb=53ae2428795d0b9d42a1657c22c5f1b557784379;hp=a211c378ae48e80da5bf252633b0c2e1f132fa92;hpb=44a2ac759eaf811ea851bdf9177a51bf9b95b5ce;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlvar.pod b/pod/perlvar.pod index a211c37..c3adfa0 100644 --- a/pod/perlvar.pod +++ b/pod/perlvar.pod @@ -228,6 +228,14 @@ performance penalty on all regular expression matches. See L. See L@-> for a replacement. +=item ${^MATCH} +X<${^MATCH}> + +This is similar to C<$&> (C<$POSTMATCH>) 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
modifier. + =item $PREMATCH =item $` @@ -243,6 +251,14 @@ performance penalty on all regular expression matches. See L. See L@-> for a replacement. +=item ${^PREMATCH} +X<${^PREMATCH}> + +This is similar to C<$`> ($PREMATCH) 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 modifier. + =item $POSTMATCH =item $' @@ -264,6 +280,14 @@ performance penalty on all regular expression matches. See L. See L@-> for a replacement. +=item ${^POSTMATCH} +X<${^POSTMATCH}> + +This is similar to C<$'> (C<$POSTMATCH>) 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 modifier. + =item $LAST_PAREN_MATCH =item $+ @@ -320,17 +344,20 @@ Similar to C<@+>, the C<%+> hash allows access to the named capture buffers, should they exist, in the last successful match in the currently active dynamic scope. -C<$+{foo}> is equivalent to C<$1> after the following match: +For example, C<$+{foo}> is equivalent to C<$1> after the following match: + + 'foo' =~ /(?