in reply to Re: Storing Lines before and After patternin thread Storing Lines before and After pattern
($before, $match, $after) = split /(DOG)/, $poem, 2; [download]