in reply to Best method to eliminate substrings from array
Please see Short, Self-Contained, Correct Example, and also and in particular How to ask better questions using Test::More and sample data.
Give a man a fish: <%-{-{-{-<