Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Can any one enlighten me why the exit values are different in below code snippet? One is exit(-1) & other is exit(EBADF).
user@ubuntu:~$ perl -e 'die "Hello"';echo $? Hello at -e line 1. 255 user@ubuntu:~$ perl die "Hello" Hello at - line 1. user@ubuntu:~$ echo $? 9
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl die & exit values
by Corion (Patriarch) on Feb 26, 2018 at 14:55 UTC | |
by choroba (Cardinal) on Feb 26, 2018 at 15:36 UTC |