in reply to Remote command execution status

However when i execute a command on a remote system via say ssh or telnet (using corresponding perl modules) , how do i get the execution status of the command ?

From the module you use for executing the command, if it supports that operation. Since you haven't told us which modules you use, I can't give a more specific answer.

Perl 6 - links to (nearly) everything that is Perl 6.