You are viewing the version of this documentation from Perl 5.005. View the latest version
$LAST_PAREN_MATCH
$+

The last bracket matched by the last search pattern. This is useful if you don't know which of a set of alternative patterns matched. For example:

/Version: (.*)|Revision: (.*)/ && ($rev = $+);

(Mnemonic: be positive and forward looking.) This variable is read-only.

init