in reply to Re^3: 36 Conditions in If Statement [sendhelp]]
in thread 36 Conditions in If Statement [sendhelp]]
My fear, be it rational or not, is that $_ is very generic and I have no idea what it means when I look back over my code. With $i, $j, $k, $l, etc. I always use as indexes so I know that's an index; I try to name everything else as something meaningful. My example isn't well named but It's still easier for me to remember what I'm trying to do with $input, $output, @mask, rather than $_.
When possible I try to assign and use something like $i instead of $_. Is this a bad habit?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: 36 Conditions in If Statement [sendhelp]]
by AnomalousMonk (Archbishop) on Feb 07, 2017 at 18:19 UTC | |
|
Re^5: 36 Conditions in If Statement [sendhelp]]
by haukex (Archbishop) on Feb 08, 2017 at 08:43 UTC |