in reply to Re: perl script
in thread perl script

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.

Replies are listed 'Best First'.
Re^3: perl script
by AnomalousMonk (Archbishop) on Jan 12, 2017 at 21:30 UTC

    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:  <%-{-{-{-<