Andurs has asked for the wisdom of the Perl Monks concerning the following question:
For some reason it either hangs up or doesn't print anything. Can anybody tell me whats wrong?use IO::Socket; my $sock = IO::Socket::INET->new(PeerAddr => 'www.xxxxx.com', PeerPort => '81', Proto => 'tcp' ); while (<$sock>){ print; }
Andrew
Title edit by tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sockets
by pfaut (Priest) on Jan 08, 2003 at 22:49 UTC | |
|
Re: Sockets
by Enlil (Parson) on Jan 08, 2003 at 22:52 UTC | |
|
Re: Sockets
by Jenda (Abbot) on Jan 08, 2003 at 23:43 UTC | |
|
Re: Sockets
by behroozi (Beadle) on Jan 09, 2003 at 00:35 UTC |