http://www.perlmonks.org?node_id=304423


in reply to When -w and use strict aren't enough...

If you leave the parenthesis off, like this:
if ($mday == 1 && $month == 1) { handelNewYear; # Typo in function name. }
then the code won't compile under 'use strict'.

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
    Very cool, thanks Abigail-II.

    Exactly the kind of wisdom I was hoping for :)


    Mike