There's more than one way to do things | |
PerlMonks |
Re^3: list of unique strings, also eliminating matching substringsby BrowserUk (Patriarch) |
on May 30, 2011 at 12:12 UTC ( [id://907309]=note: print w/replies, xml ) | Need Help?? |
I used this generator to create a 10000 string file where the first 5000 string are just randomly generated and the other 5000 are random substring extracted from the first 5000. Thus, you'd expect at most 5000 unique strings with a very slight possibility of there being fewer:
When I run your code on this file it misses some dups:
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|