http://qs321.pair.com?node_id=959869


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
my (@array)=$telnet->cmd(string => 'ls', prompt => '/=>/');
gives be one line, which is blank. Though if I pass this line
my ($a, $b, $c)=$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.
btm.swi secondary.swi cfg/

Any thoughts?

thanks for all your input!