$? is only useful if you're spawning other processes from Perl, using system, open and others. So if you're not doing this, it's very possible that you're indeed returning a 0 to the calling script. Why don't you return a simple 1 and let the calling script manage the error condition? Better try to post some code for making your problem a bit clearer.
--
David Serrano
In reply to Re^3: Returning a bad status back to the parent UNIX process
by Hue-Bond
in thread Returning a bad status back to the parent UNIX process
by JimRobinson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |