The scope of $<digit> (and $`, $&, and $') extends to the end of the enclosing BLOCK or eval string, or to the next successful pattern match, whichever comes first.
So, in your case, I think inner $<digit> vars go out of scope, getting undef
In reply to Re: capture vars undef
by deibyz
in thread capture vars undef
by msemtd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |