http://qs321.pair.com?node_id=931302


in reply to Finding a Block of Text in a Larger Block of Text

1) An exact duplicate

perldoc -f index

Replies are listed 'Best First'.
Re^2: Finding a Block of Text in a Larger Block of Text
by kennethk (Abbot) on Oct 13, 2011 at 18:11 UTC
    Note this will only work if 'exact duplicate' is order sensitive. If the modifier-order is irrelevant, this comparison with fail since index will check for identical strings.