in reply to partial results in $1 $2 after re failure

'-' 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

  • Comment on Re: partial results in $1 $2 after re failure

Replies are listed 'Best First'.
Re: Re: partial results in $1 $2 after re failure
by Anonymous Monk on Jun 30, 2002 at 08:39 UTC
    '-' does not match \w.

    Exactly, the failure of the second line is intentional in order to show that partial previous results for $1 and $2 were still printed. Shouldn't the output for the failing line have been either <><> or <abc><def>?