![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Need help getting output from Telnet into a string or arrayby samtregar (Abbot) |
on Mar 15, 2012 at 17:09 UTC ( #959823=note: print w/replies, xml ) | Need Help?? |
Here's the lines from Net::Telnet's docs for the cmd() method that explain what's happening:
So you need to call it in list context if you want the output (assign the result to @array, not a scalar like $output). -sam PS: For a brand new coder your code-quality looks great!
In Section
Seekers of Perl Wisdom
|
|