There's more than one way to do things | |
PerlMonks |
Re: force regular expression to match every item only onceby pKai (Priest) |
on Apr 20, 2008 at 20:03 UTC ( [id://681825]=note: print w/replies, xml ) | Need Help?? |
I'm not exactly sure what you want to achieve, but from what I read I would think you want matching pairs in $matcher instead of zero-length assertions, as in:
Which gives 3 matches instead of 5 (likewise for $dictword = "zeezze";.) If I' completely wrong, please clean the syntax/stricture errors in your OP first.
In Section
Seekers of Perl Wisdom
|
|