bahadur has asked for the wisdom of the Perl Monks concerning the following question:
it gives me an error that it cannot connect. but when i replace the values with hardcoded ones it works ok. can any one write up full running code where i can exchange strings between two scripts using IO::SOCKET::INET. also the host and port number have to be taken from the command line.my $client = IO::Socket::INET->new( PeerAddr => '$host', PeerPort => '$port', Proto => 'tcp',)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: exchanging strings on the network
by holli (Abbot) on May 10, 2005 at 10:17 UTC | |
by bahadur (Sexton) on May 10, 2005 at 10:22 UTC | |
by holli (Abbot) on May 10, 2005 at 10:26 UTC | |
by bahadur (Sexton) on May 10, 2005 at 10:41 UTC | |
by holli (Abbot) on May 10, 2005 at 10:57 UTC | |
| |
|
Re: exchanging strings on the network
by Adrade (Pilgrim) on May 11, 2005 at 01:13 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |