I am executing shell command using perl using open 3
local ( *HANDLE_IN, *HANDLE_OUT, *HANDLE_ERR );
my $pid = open3( *HANDLE_IN, *HANDLE_OUT, *HANDLE_ERR, @cmd_args );
where @cmd_args = my shell command
My shell returns below exit codes
0: command executed successfully
>0: error in executing the command
How can i capture the exit code from shell in my perl?