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


in reply to Net::Telnet issue getting command output

The string concatination operator . has forced the array into scalar context, and so the list returns it's length not its content.

Try runing this to see some different ways of doing it

my @tmp = (1,2,3); print @tmp; print "\n"; print @tmp , "\n"; print @tmp . "\n"; print "@tmp" , "\n"; print join("\n" , @tmp);

Replies are listed 'Best First'.
Re^2: Net::Telnet issue getting command output
by gballanti (Initiate) on Feb 12, 2016 at 12:05 UTC

    Hello Richard, thank you for the answer
    you have reason using the concatenation operator "." how I did
    Is not a good way to have array printed.
    greetings