To make things even more interesting, given creates a new lexical $_:
$ perl -wE '$_ = 1; sub p { say }; given (42) { say; p }' 42 1
In reply to Re: What is the scope of $_?
by moritz
in thread What is the scope of $_?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |