sidhartha has asked for the wisdom of the Perl Monks concerning the following question:
with the cursor below the last line. My theory is that i'm having problems because I need to match this last line that has nothing in it, of course I could be way off :( Everything I try doesn't seem to work. Here's a small test program which illustrates my problem. I thank you all in advance for any help or pushes in the right dierction.telnet www.yahoo.com 80 Trying 64.58.76.229... Connected to www.yahoo.akadns.net. Escape character is '^]'.
Thanksuse Net::Telnet; $telnet = new Net::Telnet ( Timeout=>10, Errmode=>'die', Port => 80, Prompt => '/\'.$/'); $telnet->open('www.whatever.com'); $output=$telnet->cmd('GET / '); print $output;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pattern Matching
by dws (Chancellor) on Feb 02, 2002 at 04:14 UTC | |
|
Re: Pattern Matching
by lestrrat (Deacon) on Feb 02, 2002 at 06:11 UTC | |
by sidhartha (Acolyte) on Feb 08, 2002 at 03:27 UTC | |
|
Re: Pattern Matching
by JayBonci (Curate) on Feb 02, 2002 at 04:37 UTC |