Yesterday I had a 'DOH' moment twice. One moment twice? Yes ;-) The second one was a deja-vu because it was the same mistake in the same sub at another position.
What I learned from it is: NEVER EVER use if ( $somevariable ) if you really wanted if ( $somevariable ne '' )
In reply to Re: Avoiding silly programming mistakes
by Skeeve
in thread Avoiding silly programming mistakes
by missingthepoint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |