Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Boolean (was Boolian) operators defy my understanding...

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,
Zaxo

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://622266]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2024-03-28 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found