in reply to socket help
Need to do like this.print <$fh>;
$var = <fh>; print $var;
When we do something like 'print <fh>' it reads till EOF and prints entire content. Since, I've tried in sockets, I wouldn't have received EOF. So, the above code didn't work as expected.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: socket help
by almut (Canon) on Apr 23, 2010 at 12:26 UTC | |
|
Re^2: socket help
by sierpinski (Chaplain) on Apr 23, 2010 at 16:31 UTC |