You are viewing the version of this documentation from Perl 5.005_01. View the latest version
$PREMATCH
$`

The string preceding whatever was matched by the last successful pattern match (not counting any matches hidden within a BLOCK or eval enclosed by the current BLOCK). (Mnemonic: ` often precedes a quoted string.) This variable is read-only.