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.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?