Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: "Subroutine basics" What does -1 mean ?

by toolic (Bishop)
on May 29, 2014 at 15:00 UTC ( [id://1087815]=note: print w/replies, xml ) Need Help??


in reply to "Subroutine basics" What does -1 mean ?

exit stops your script and returns -1 in your case. Conventionally, a non-zero exit status would mean that your script was unsuccessful.
  • Comment on Re: "Subroutine basics" What does -1 mean ?

Replies are listed 'Best First'.
Re^2: "Subroutine basics" What does -1 mean ?
by Laurent_R (Canon) on May 29, 2014 at 15:26 UTC

    Conventionally, a non-zero exit status would mean that your script was unsuccessful.

    This is true under Unix and Linux. Not necessarily under other OS's.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2024-04-18 07:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found