in reply to Re^3: Need help getting output from Telnet into a string or array
in thread Need help getting output from Telnet into a string or array
ok with plenty of fiddling around here's what I've been able to decipher.
I pass
gives be one line, which is blank. Though if I pass this linemy (@array)=$telnet->cmd(string => 'ls', prompt => '/=>/');
and print the results I get 3 lines of output so the system will pass in list context, but I fear I'm missing why it won't pass it to an array. below is the output from the a,b,c variables.my ($a, $b, $c)=$telnet->cmd(string => 'ls', prompt => '/=>/');
btm.swi secondary.swi cfg/
Any thoughts?
thanks for all your input!
In Section
Seekers of Perl Wisdom