Keep It Simple, Stupid | |
PerlMonks |
Re: Best method to eliminate substrings from arrayby AnomalousMonk (Archbishop) |
on Jun 26, 2019 at 17:13 UTC ( [id://11101962]=note: print w/replies, xml ) | Need Help?? |
Each string is a set of two or more values separated by pipes ("|"). ... eliminate any strings that are substrings of other strings ... What's a "value"? Can you have a string 'AA|BB|CC? If so, is 'A|B' a valid substring of it? (This would be true if testing with index.) Basically, I don't understand the concept of "substring." Give a man a fish: <%-{-{-{-<
In Section
Seekers of Perl Wisdom
|
|