if (my $x) { ... }
(variable declaration in a conditional without assignment) could actually warn, because it will never be true. (But perl intentionally doesn't have such warnings, some people like stuff like if (0) { ... }).
In reply to Re^4: Avoiding silly programming mistakes
by moritz
in thread Avoiding silly programming mistakes
by missingthepoint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |