Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Re: Eval and system()

by pmas (Hermit)
on Sep 05, 2001 at 18:30 UTC ( #110301=note: print w/replies, xml ) Need Help??

in reply to Re: Eval and system()
in thread Eval and system()

  • The standard C libraries, for reasons which will be left to your imagination, use '0' to indicate success and non-zero to indicate failure.
I remember it this way: routine returns error number. If returns 0 => no errors. It makes sense for C, any kind of TRUE value means some error. But you can have only one kind of success, so OK == 0.

If you looking at return value this way, it makes sense, right?

To make errors is human. But to make million errors per second, you need a computer.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2022-05-23 10:36 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (81 votes). Check out past polls.