'-' does not match \w.
Update: AM, you're absolutely right, I missed the point. I get the same results. I suspect that the content of the loop is acting as one dynamic scope, but I have no idea why $1, $2 are losing string length information. Seems like a perl bug to me.
After Compline,
Zaxo
In reply to Re: partial results in $1 $2 after re failure
by Zaxo
in thread partial results in $1 $2 after re failure
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |