How can I set return codes for a perl-script?

2001-06-27 Thread Roland Schoenbaechler
I want a perl-script to be startet by another application. Is there a possibility to send a return code from the perl-script to the application saying whether the perl-script was running properly? Is this working for Unix and NT? Thanks a lot Roland *** PLEASE NOTE

Re: How can I set return codes for a perl-script?

2001-06-27 Thread Me
I want a perl-script to be startet by another application. Is there a possibility to send a return code from the perl-script to the application saying whether the perl-script was running properly? Is this working for Unix and NT? use exit, eg exit 2;