http://qs1969.pair.com?node_id=461395


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].