chubby has asked for the wisdom of the Perl Monks concerning the following question:
The Problem ---->> ( when i run it) root@localhost root# perl test Can't locate object method "new" via package "Net::Telnet" at test line 19. any suggestions ??? chubby#!usr/bin/perl use Net::Telnet (); $telnet = new Net::Telnet ( Timeout=>10,Errmode=>'die'); $telnet->open('192.168.1.1'); $telnet->waitfor('/login: $/i'); $telnet->print('root'); $telnet->waitfor('/password: $/i'); $telnet->print('root'); $telnet->waitfor('/\$ $/i'); $telnet->print('who'); $output = $telnet->waitfor('/\$ $/i'); print $output;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't locate object method
by broquaint (Abbot) on Jun 24, 2002 at 11:55 UTC | |
by demerphq (Chancellor) on Jun 24, 2002 at 12:19 UTC | |
|
Re: Can't locate object method
by bronto (Priest) on Jun 24, 2002 at 11:55 UTC | |
|
Re: Can't locate object method
by Sifmole (Chaplain) on Jun 24, 2002 at 11:16 UTC | |
|
Re: Can't locate object method
by agoth (Chaplain) on Jun 24, 2002 at 11:13 UTC | |
|
Re: Can't locate object method
by smitz (Chaplain) on Jun 24, 2002 at 11:48 UTC | |
by chromatic (Archbishop) on Jun 24, 2002 at 14:47 UTC |