Re: POE with IO::Socket
- From: Peter@xxxxxxxx (Peter Scott)
- Date: 1 Nov 2009 13:57:20 -0000
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
.
- Follow-Ups:
- Re: POE with IO::Socket
- From: Someone Something
- Re: POE with IO::Socket
- References:
- POE with IO::Socket
- From: Someone Something
- POE with IO::Socket
- Prev by Date: Re: [Fwd: Re: Problem with function getquotaroot in IMAP::Client]
- Next by Date: Re: POE with IO::Socket
- Previous by thread: POE with IO::Socket
- Next by thread: Re: POE with IO::Socket
- Index(es):
Relevant Pages
|