![]() |
|
"be consistent" | |
PerlMonks |
Re: Avoiding the == bluesby SolidState (Scribe) |
on Dec 30, 2004 at 08:37 UTC ( #418215=note: print w/replies, xml ) | Need Help?? |
Since most people tend to write the "if" and and conditional on the same line, the following one-liner should work for most Perl scripts:
Of course this won't catch cases where the if and conditional are not on the same line, or constructs such as: Covering more cases will require a full blown script... or perhaps a new CPAN module :-)
In Section
Meditations
|
|