Re: Help required about NET::TELNET

2005-12-05 Thread Stephen Kratzer
Mazhar, try: $telnet->waitfor(Match => '/login: $/i'); and $telnet->waitfor(Match => '/password: $/i'); Vishal, Right, you want to wait for the device to return something that will match the expression between the slashes. In that example, you'd be waiting for the device to return a login prom

Re: Help required about NET::TELNET

2005-12-05 Thread vmalik
Hey Mazhar, I don't know much about perl, but in the $telnet->waitfor method, what does the weird parameter mean ('/login: $/i')? I thought that $ means a scalar variable in perl. What do the forward slashes do here? Some sort of regular expression?? Vishal Quoting Mazhar <[EMAIL PROTECTED]>:

Help required about NET::TELNET

2005-12-05 Thread Mazhar
Hi Folks, I have installed the module NET::TELNET from CPAN and when i try to execute the below simple pgm, --- use Net::Telnet; $telnet = new Net::Telnet ( Timeout=>100,Errmode=>'die'); $telnet->open('202.177.129.37'); $teln