Syntactic Confectionery Delight | |
PerlMonks |
Re: Suffix-prefix matching done rightby LanX (Saint) |
on Nov 05, 2021 at 11:43 UTC ( [id://11138459]=note: print w/replies, xml ) | Need Help?? |
Please provide a real test case! Randomly chosen base64 strings will almost never overlap. And comparing the efficiency of different solutions is not possible with the fuzzy specs given. So efficiency will also depend on the nature of the real data. My suggestions:
But you don't need to try all possible length, because only a small number of positions are likely:
This should be far more efficient than your code.
updates
Cheers Rolf °) euphemism for buggy
editadded none
In Section
Seekers of Perl Wisdom
|
|