Do you know where your variables are? | |
PerlMonks |
Re^3: Search for identical substringsby graff (Chancellor) |
on Aug 19, 2005 at 00:09 UTC ( [id://484987]=note: print w/replies, xml ) | Need Help?? |
... but I want "s split" with a hit count of 7, no misses and no holes.
Based on that, I checked that example against my script, and found that I needed to call "end_match()" after "travers_sequence()" was done, in case a match exends to the end of both strings. With that update, the script does what you want in this case. (But for the other sample data you posted above, I think it doesn't come up with the best answer in some cases, and I don't understand why, as yet.)
In Section
Seekers of Perl Wisdom
|
|