in reply to perl script

What value is in $output?

You can inspect the value in $output by doing:

print $output;

See index.

Replies are listed 'Best First'.
Re^2: perl script
by Anonymous Monk on Jan 12, 2017 at 18:27 UTC
    print $output; my $ex = QA::STK::Execute->new(ip=>'some ip',user=>'root'); $ex->command("ls-l"); my $rc = $ex->execute(); my $output = $ex->output(); Gives perl doubt.

      It may be useful to print the value of  $output after it has been given some (possibly) meaningful value:

      ... my $output = $ex->output(); print ">>$output<<"; ...
      This may remove doubt. Note that the variable is being printed with clear indications of its start and end.


      Give a man a fish:  <%-{-{-{-<