gokuraku has asked for the wisdom of the Perl Monks concerning the following question:
But how can I get this to work in an automated fashion? I thought I could just do:while (defined($line= <STDIN>)) { print $rem_socket $line; }
So each line in the array, its a set of strings, is sent to the server. Hints and help are appreciated. Thanks!foreach $send (@data) { print $rem_socket $send; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Redirect array to a socket handle
by ikegami (Patriarch) on Nov 05, 2007 at 19:49 UTC | |
|
Re: Redirect array to a socket handle
by FunkyMonk (Bishop) on Nov 05, 2007 at 19:48 UTC | |
by gokuraku (Monk) on Nov 06, 2007 at 13:15 UTC | |
|
Re: Redirect array to a socket handle
by codeacrobat (Chaplain) on Nov 06, 2007 at 07:09 UTC |