in reply to Array not storing the result of a router command
Hi Arun Kumar,
Just Curious questions:
- Why test for the variable $type twice in your script?
- for this particular router, can you test another command to see if @cmd_output would not return null? like say: my @output = $session->cmd('show version'); print @output;
- In your print line, i.e print "Array value__________________'@cmd_output'\n"; why put the variable @cmd_output in a single quote? Does other router output give output in that like?
If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Array not storing the result of a router command
by Arun Kumar (Novice) on May 09, 2013 at 19:28 UTC |
In Section
Seekers of Perl Wisdom