Re: POE with IO::Socket
- From: fordhaivat@xxxxxxxxx (Someone Something)
- Date: Sun, 1 Nov 2009 09:12:37 -0500
How about threading? How hard is it? Where can I find a good tutorial?
On Sun, Nov 1, 2009 at 8:57 AM, Peter Scott <Peter@xxxxxxxx> wrote:
On Sat, 31 Oct 2009 23:24:15 -0400, Someone Something wrote:
Firstly, I have posted this in perlmonks. No one has replied to me so, I
have posted here.
I'm writing a module for IRC just for learning about sockets and perl in
general. I have 200 lines of working code. Now, I am getting to a point
where I am writing a who() function and I realise that I need receive
while sending. I asked on #perl on freenode and they directed me to POE.
Can I implement POE without changing all my code which is based on
IO::Socket::INET?
No, you'll have to change pretty much all of it. Some of the "business
logic" layer will survive.
POE is a radically different way of thinking compared to what you have
been doing. It is totally asynchronous and event-driven. But it is
immensely powerful. Once you invest the time to learn it you will be able
to do projects like the one you are engaged in much faster.
Rewriting 200 lines should not take much time at all.
--
Peter Scott
http://www.perlmedic.com/
http://www.perldebugged.com/
http://www.informit.com/store/product.aspx?isbn=0137001274
--
To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx
For additional commands, e-mail: beginners-help@xxxxxxxx
http://learn.perl.org/
- Follow-Ups:
- Re: POE with IO::Socket
- From: Brian J. Miller
- Re: POE with IO::Socket
- References:
- POE with IO::Socket
- From: Someone Something
- Re: POE with IO::Socket
- From: Peter Scott
- POE with IO::Socket
- Prev by Date: Re: POE with IO::Socket
- Next by Date: Re: OOB and dispatch table
- Previous by thread: Re: POE with IO::Socket
- Next by thread: Re: POE with IO::Socket
- Index(es):
Relevant Pages
|