Is it possible to redirect the ssh->cmd output
command output to some scalar variable
$cmd="ls";
ssh->cmd($cmd);
my requirement is to store ls output to one scalar variable.
as per the above example ls output should be stored in the some scalar variable $test.