in reply to Re: CPAN Module to determing overlap of 2 lists?
in thread CPAN Module to determing overlap of 2 lists?
I hadn't thought much about a regex solution.
To ensure the match start is a complete line, requires a small tweak.
my $combine = "$file1$marker$file2" =~ s/(?:\A|\n)(.*)\K\Q$marker\E\1/ +/sr;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: CPAN Module to determing overlap of 2 lists?
by LanX (Saint) on Aug 12, 2020 at 18:27 UTC | |
by LanX (Saint) on Aug 12, 2020 at 21:08 UTC | |
by wazat (Monk) on Aug 13, 2020 at 00:50 UTC | |
by LanX (Saint) on Aug 13, 2020 at 14:15 UTC |