nysus has asked for the wisdom of the Perl Monks concerning the following question:
I naively thought that @from_server array would suck up the entire multiline output from the server, like what happens when the angle brackets are used in a list context on a regular file. Why doesn't it work with a socket?LOOP: while (1) { { # localize change to $/ last LOOP unless @from_server = <$socket>; #<---program hangs on t +his line } print @from_server,"\n";
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop";
$nysus = $PM . $MCF;
Click here if you love Perl Monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting multiline input from a server
by HyperZonk (Friar) on Jul 26, 2001 at 07:48 UTC | |
by nysus (Parson) on Jul 26, 2001 at 08:42 UTC | |
|
Re: Getting multiline input from a server
by tadman (Prior) on Jul 26, 2001 at 08:16 UTC | |
|
Re: Getting multiline input from a server
by mattr (Curate) on Jul 26, 2001 at 18:50 UTC |