I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2010-05-23 20:08:34.289138-07 by kerisman in response to 12716
Re: Can I return error (exit) code to system after a command is run?
If you really need exit codes, another option would be to write a command superclass (all your commands would inherit from it) that might have methods such as get_last_err_code, clear_err_code, set_err_code. The commands would set the error code inside run(). Other external entities (such as your test scripts) could access the error code (by first accessing the command object, which CLIF allows via get_current_command, registered_command_object, etc.) and take actions based on its value.

...but, as I explained, I recommend using proper exception handling instead.
Direct Responses: Write a response