Simple messaging program.

2011-03-15 Thread Daniel Calvo
Hello gentlemen. Thanks for the replies. Terry, before mailing the list I already had stumbled upon that page. I thought it was less clearer than the perl-doc page, I couldn't grasp it at first like with perl-doc. Uri, thanks a lot for the pointers. Yes, what my clients are doing is dumping all o

Re: Simple messaging program.

2011-03-15 Thread Uri Guttman
> "t" == terry writes: t> 于 2011-3-16 8:31, Daniel Calvo 写道: >> while (<$fh>) { >> print; >> } t> For the first look, you shouldn't be using <> for receiving data from t> the socket. For more details, please loot at this article and its t> comments: t> http://www.perlfect.

Re: Simple messaging program.

2011-03-15 Thread terry
于 2011-3-16 8:31, Daniel Calvo 写道: while (<$fh>) { print; } For the first look, you shouldn't be using <> for receiving data from the socket. For more details, please loot at this article and its comments: http://www.perlfect.com/articles/select.shtml -- To unsubscribe, e-mail:

Simple messaging program.

2011-03-15 Thread Daniel Calvo
Hello! I'm trying to learn about network programming and sockets in perl. I'm fairly new to the language, I just read Randal's book. What I'm trying to do is a simple program that reads every line of from multiple clients and prints them on real time to on a server. After a lot of googling, s