in reply to When -w and use strict aren't enough...
If you leave the parenthesis off, like this:
then the code won't compile under 'use strict'.if ($mday == 1 && $month == 1) { handelNewYear; # Typo in function name. }
Leaving parens off isn't always possible without writing uncommon idiom, but in many cases you can leave the parens off, and it'll capture many mistyped sub names.
Abigail
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: When -w and use strict aren't enough...
by RMGir (Prior) on Nov 04, 2003 at 19:48 UTC |
In Section
Seekers of Perl Wisdom