I avoid the $<DIGITS> issue by hardly ever using them, and when I do use them I only use them at right hand side of an assignment and immediately after the match. I.e. I do my ($foo, $bar) = $baz =~ /.../ and $baz =~ /.../; my ($foo, $bar) = ($1, $2);.
ihb
See perltoc if you don't know which perldoc to read!
In reply to Re: Passing globals and magic variables safely
by ihb
in thread Passing globals and magic variables safely
by ysth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |