doctor_moron has asked for the wisdom of the Perl Monks concerning the following question:
when i ran this script i cant read any outputs....use strict; use IO::Socket; my $host= 'scsa.msg.yahoo.com'; my $port=5050; my $sock=new IO::Socket::INET(PeerAddr => $host, PeerPort=> $port, Proto=>'tcp'); die "cant open socket" unless ($sock); my $cmd="MYGET\n"; while(<$sock>) { print } close $sock;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: read binary datas
by sgifford (Prior) on Sep 20, 2004 at 21:58 UTC | |
|
Re: read binary datas
by Plankton (Vicar) on Sep 20, 2004 at 21:43 UTC | |
|
Re: read binary datas
by Errto (Vicar) on Sep 21, 2004 at 03:27 UTC |