You could do that, or you could use a lexical variable with a sensible name that not only completely avoids the issue, but also makes the code easier to read.
In reply to Re^3: $_ confusion with loops in loops
by GrandFather
in thread $_ confusion with loops in loops
by stanley82
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |