in reply to "Subroutine basics" What does -1 mean ?
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.