dynamopsychism has asked for the wisdom of the Perl Monks concerning the following question:
Any ideas?use strict; use IO::Socket::INET; my $remote_host = "127.0.0.1"; my $remote_port = 950; my $socket; $socket = IO::Socket::INET->new(PeerAddr => $remote_host, PeerPort => +$remote_port, Type => SOCK_STREAM, Proto => "tcp") || die "Problem: $ +!\n"; print $socket "sp100\r"; my $data = <$socket>; print STDOUT $data; close $socket;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why won't this read?
by Anonymous Monk on May 23, 2001 at 01:54 UTC | |
by Anonymous Monk on May 23, 2001 at 01:56 UTC | |
by dynamopsychism (Initiate) on May 23, 2001 at 02:27 UTC | |
|
Re: Why won't this read?
by traveler (Parson) on May 23, 2001 at 02:11 UTC | |
|
Re: Why won't this read?
by Anonymous Monk on May 23, 2001 at 13:38 UTC |