Agreed. I generally try to code defensively, but in the context of my original question, I am trying to make the defensive code implicit (Perl automatically tells me when and where I used an uninitialized variable) rather than explicit (adding code to check if a variable is unitialized then dying/warning if it is).
Both have the same result, but I think the former results in cleaner code.
In reply to Re^2: Debugging "Use of uninitialized value" warnings.
by cwry
in thread Debugging "Use of uninitialized value" warnings.
by cwry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |