in reply to ??{ } oddity
In your case this means that if the subexpression matches, the m// match is done and the code is not called again.
If it doesn't match, the expression is moved forward by one character and tries to match again (which calls the code again, because if you use a code block, you'll likely want to return a different match expression).
It's very likely you can use a more efficient technique here, but that depends on what you actually want to do.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: ??{ } oddity
by insaniac (Friar) on Apr 28, 2005 at 12:41 UTC | |
by Roy Johnson (Monsignor) on Apr 28, 2005 at 15:54 UTC | |
by insaniac (Friar) on Apr 28, 2005 at 17:09 UTC |