|
|
| The stupid question is the question not asked | |
| PerlMonks |
Re(4): My coding guidelinesby mojotoad (Monsignor) |
| on Nov 29, 2002 at 23:38 UTC ( #216613=note: print w/ replies, xml ) | Need Help?? |
|
If not, why not? What do you use instead? I find not is usually the cleanest and most readable operator for all sorts of tests. It's just a matter of taste. I'm not against using not, I just don't happen to prefer it. You give the following example:
In this case I would use unless:
As for if (not -r $file) {...}, I typically use the bang operator (!) rather than not -- just a matter of preference, probably due to my C influences. Matt
In Section
Meditations
|
|
||||||||||||||||||||||||