in reply to Re^4: exchanging strings on the network
in thread exchanging strings on the network
I think what you need is more like this:while(<$client>) { print $_; print $client "Username $user Pass $pass";}
For the other part, I don't see why this (code below) would not work. again. if the variables contain what they should. Always check your input!print $client "Username $user Pass $pass"; while(<$client>) { print $_; <STDIN>; #read input from user (changes $_!) print $client $_; }
$host = $ARGV[2]; #or whatever it is in your ARGV $port = $ARGV[4]; my $client = IO::Socket::INET->new( PeerAddr => $host, PeerPort => $port,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: exchanging strings on the network
by bahadur (Sexton) on May 10, 2005 at 11:11 UTC | |
by mattk (Pilgrim) on May 10, 2005 at 11:34 UTC |