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 |
In Section
Seekers of Perl Wisdom