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.