in reply to Default variable $_ is not getting overwritten
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Default variable $_ is not getting overwritten
by Preceptor (Deacon) on Jul 05, 2016 at 09:02 UTC |