It sounds like you have no doubt that Perl actually sets the error code, so this has nothing to do with Perl. I'd recommend converting the batch to bash.
[ Intentionally left this question about batch files unapproved ]
In reply to Re: Perl exit code is not always bubbling up
by ikegami
in thread Perl exit code is not always bubbling up
by malevy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |