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.
In reply to Re^3: finding the last occurence of substring in string
by BrowserUk
in thread finding the last occurence of substring in string
by gri6507
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |