> blade:~/personal/perl > cat -n check.p > 1 #!/usr/bin/perl > 2 > 3 use Net::Telnet; > 4 > 5 $timeout = 10; > 6 $obj=new Net::Telnet( [Timeout => $timeout,] ); > 7 > blade:~/personal/perl > perl check.p > unknown remote host: ARRAY(0x22494) at check.p line 6 > blade:~/personal/perl >
[Timeout => $timeout.] creates an array reference, which when printed out, in your case gave 'ARRAY(0x22494)'. If you check the docs for Net::Telnet[1], I think you'll find the answer to your problem in the first example. [1] <http://search.cpan.org/~jrogers/Net-Telnet-3.03/lib/Net/Telnet.pm> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>