I whipped up two quick tests: gist.github.com/matthewpersico/aa1... and gist.github.com/matthewpersico/aa1... and yes, not having that local can be disastrous. So, since for and map and the like are coded "properly", i.e., they localize $_, you should be safe to use them and use functions that call them. But if someone has done this $_ assignment trick and forgets the local, there be dragons.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I whipped up two quick tests:
gist.github.com/matthewpersico/aa1... and gist.github.com/matthewpersico/aa1... and yes, not having that
local
can be disastrous. So, sincefor
andmap
and the like are coded "properly", i.e., theylocal
ize$_
, you should be safe to use them and use functions that call them. But if someone has done this$_
assignment trick and forgets thelocal
, there be dragons.