Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: using exit and number 1 at end of file

by TexasTess (Beadle)
on Jun 09, 2003 at 08:11 UTC ( [id://264265]=note: print w/replies, xml ) Need Help??


in reply to using exit and number 1 at end of file

At work we commonly use "exit" as a method of telling the calling party the status of the exit. exit 0 is normal, exit -1 on an error. We have various other programs written in other languages that call perl scripts. If they get a negative value in the exit they know there was an issue with the script and report it in a log or something similar. The values are arbitrary, it all depends on what you expect to be an error free exit versus what you expect to indicate an error.

TexasTess
It's all about love; What you'd do to love, and what you'd love to do -- Katherine Moody
  • Comment on Re: using exit and number 1 at end of file

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-24 10:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found