X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlvar.pod;h=8a486b2b7419036bc57fcb92478fc884b725cca2;hb=ca06c01c30b19d0094642f2e317dadf13d4509cd;hp=4d8c17e84ea3283c1b27667f6251ab442383ace0;hpb=efbd929db929308cc9ae6bdeff1f8f52fb176c53;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlvar.pod b/pod/perlvar.pod index 4d8c17e..8a486b2 100644 --- a/pod/perlvar.pod +++ b/pod/perlvar.pod @@ -313,6 +313,17 @@ past where $2 ends, and so on. You can use C<$#+> to determine how many subgroups were in the last successful match. See the examples given for the C<@-> variable. +=item %+ +X<%+> + +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: + + 'foo'=~/(?foo)/; + =item HANDLE->input_line_number(EXPR) =item $INPUT_LINE_NUMBER @@ -322,7 +333,7 @@ examples given for the C<@-> variable. =item $. X<$.> X<$NR> X<$INPUT_LINE_NUMBER> X -Current line number for the last filehandle accessed. +Current line number for the last filehandle accessed. Each filehandle in Perl counts the number of lines that have been read from it. (Depending on the value of C<$/>, Perl's idea of what