in reply to Re^2: finding the last occurence of substring in string
in thread finding the last occurence of substring in string
What is the meaning of $-[0] ?
See the definition of @LAST_MATCH_START in perlvar.
$-[0] is the value of the first element of @-. Which, after a successful match, contains the position in the string at which the capturing parens matched.
|
|---|