in reply to Re^2: Returning a bad status back to the parent UNIX process
in thread Returning a bad status back to the parent UNIX process

$? 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