In my Perl script, if I use exit(-1), the script exits. But if I use exit(-433) or exit(-233), it doesn’t exit. Why? An example follows.
if ($result1[0] eq "Error") {
print "Error occurred while updating https route\n";
print "Error returned from the script:\n";
print $result1[1];
exit(-377);
}
Run
perlbugto submit a bug report. Despite your incorrect argument, that shouldn’t preventexitfrom functioning.As you can see (by the face that
yis never printed), I can’t replicate this on a Linux system:0..255 are acceptable on unix systems. 0..65535 on Windows.