in reply to Re^3: CPAN Module to determing overlap of 2 lists?
in thread CPAN Module to determing overlap of 2 lists?

I added the line start anchor as I wanted to match whole lines.

Agreed, assuming text files, a more "binary" marker is better.

Currently I feel the regex solution is interesting, but still not my first choice. I'll dig deeper if I start profiling.

  • Comment on Re^4: CPAN Module to determing overlap of 2 lists?

Replies are listed 'Best First'.
Re^5: CPAN Module to determing overlap of 2 lists?
by LanX (Saint) on Aug 13, 2020 at 14:15 UTC
    > Currently I feel the regex solution is interesting, but still not my first choice. I'll dig deeper if I start profiling.

    For completeness.

    Another approach would be combining a binary search with string equality eq if your priorities tend towards performance.

    Of course you could change to a division factor other than 0.5 depending on heuristics.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery