This has nothing to do with non-capture mode.
The capture variables $1 and so on only hold the value of the last successful pattern match, and I guess the logic of non-capture mode only comes after the logic that resets $1 on a successful match. See perlvar for $1, where the behaviour of resetting $1 etc. is discussed.
In reply to Re: non-capture mode sometimes erases previous capture
by Corion
in thread non-capture mode sometimes erases previous capture
by raygun
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |