Regardless of how $_ behaves, not using explicit named loop variables is bad coding practice. Well named variables document your code and make it easier to understand, both by you now as you write and debug the code, and by a future stranger with no idea of how the code works (likely a future you) who has to maintain the code.
Do the smart thing, use named variables. You'll thank yourself for it in the future.
In reply to Re: Default variable $_ is not getting overwritten
by GrandFather
in thread Default variable $_ is not getting overwritten
by fireblood
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |