Have a look at exit. You are confusing return values from subroutines with the return value perl gives back to the operating system after it finished the execution. So exit; # or exit(0); exits your perl script and perl gives back 0 (=success). The same way for returning error: exit(1);
-- Hofmator
In reply to Re: return values
by Hofmator
in thread return values
by camelman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |