http://www.perlmonks.org?node_id=284424


in reply to CLI and problems

One way would be to wrap your "execCommand()" call in an 'eval' - then getParam() could die, and you simply check $@ for success / failure.

Cheers, Ben.