Perl Monk, Perl Meditation | |
PerlMonks |
Re: Boolean (was Boolian) operators defy my understanding...by Zaxo (Archbishop) |
on Jun 20, 2007 at 14:40 UTC ( [id://622266]=note: print w/replies, xml ) | Need Help?? |
I think your problem is with system, not the logical operators. Contrary to the rest of perl, system follows the os shell convention of returning false on success. That is confusing until you get used to it. The true value of a system call failure contains the exit status, which is the reason for the inverted logic. Success needs less bandwidth ;-) After Compline,
In Section
Seekers of Perl Wisdom
|
|