in reply to Re^7: list of unique strings, also eliminating matching substrings
in thread list of unique strings, also eliminating matching substrings

just noticed that index returns -1 for a missing match.

you say this worked?

    next if index $all, $x, $p;

did you manipulate $[ somewhere???

Cheers Rolf

  • Comment on Re^8: list of unique strings, also eliminating matching substrings
  • Download Code

Replies are listed 'Best First'.
Re^9: list of unique strings, also eliminating matching substrings
by BrowserUk (Patriarch) on Jun 02, 2011 at 16:22 UTC

    You're right. I edited rather than c&p :( and forgot my usual 1+.

    next if 1+index $all, $x, $p;

    Code above amended.


    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.