in reply to Re: Producing a list of offsets efficiently
in thread Producing a list of offsets efficiently

pos($string) - length($target) can be replaced with $-[0].