in reply to Perl in Shell

Please mark updates to your node, see How do I change/delete my post?. Without knowing what your code looks like, we don't know what could be causing an exit code of 2 (perhaps exit 2;?). Please show your code, or reduce your code down to a small, self-contained example that reproduces the problem.