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 <[email protected]> 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: [email protected] > For additional commands, e-mail: [email protected] > http://learn.perl.org/ > > >
