The magic of $_ is too fragile for anything but simple cases in my opinion.Yes, but it's the authors of CPAN modules that should be watching out for this, not the users of the modules.
Something I've wondered about off-and-on: is there any compelling reason not to do a "local $_;" at the beginning of every subroutine, unless you're relying on a value being passed in via $_? Why isn't this one of our "best practices"?
In reply to Re^2: cpan install($_) doesn't work in loop, but normal lexical var does
by doom
in thread cpan install($_) doesn't work in loop, but normal lexical var does
by tphyahoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |