in reply to Re^3: Avoiding silly programming mistakes
in thread Avoiding silly programming mistakes
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) { ... }).
|
---|