P is for Practical | |
PerlMonks |
exchanging strings on the networkby bahadur (Sexton) |
on May 10, 2005 at 10:10 UTC ( [id://455495]=perlquestion: print w/replies, xml ) | Need Help?? |
bahadur has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I am trying to exchange strings between two perl programs.
e.g
SCRIPT1. how are u. SCRIPT2. i am fine.\n SCRIPT1. whats up.\n SCRIPT2. nothing much\n i am using IO::Socket::INET. I have two problems. First, i am unable to exchange strings with each other. secondly i take the hostname and port number from command line. but when i try to do some thing like this 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.
Back to
Seekers of Perl Wisdom
|
|