in reply to Re: How to end a Perl script
in thread How to end a Perl script
The purpose of die is to report an error to the calling program, and the exit code is not zero. Using die when everything went right in your Perl program may trigger unexpected behaviour in your calling program. Imagine for instance using your program in a makefile. The make process would end immediately, and you would not know why.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re x 2: How to end a Perl script
by dws (Chancellor) on May 03, 2002 at 07:24 UTC |