Don't ask to ask, just ask | |
PerlMonks |
Re^2: A regex BR variable dead in following line/commandby haukex (Archbishop) |
on Nov 12, 2021 at 15:00 UTC ( [id://11138760]=note: print w/replies, xml ) | Need Help?? |
See Coping with Scoping. Although that explains local, it unfortunately doesn't explain what's going on in the OP's example (that $1 and friends are dynamically scoped).
In Section
Seekers of Perl Wisdom
|
|