in reply to Re: positions of all occurrences of a substring in a string
in thread positions of all occurrences of a substring in a string

($-[0] will work in the former too.)