|Pathologically Eclectic Rubbish Lister|
Re: optimise code EV Event AnyEvent POEby Anonymous Monk
|on Jun 26, 2012 at 05:08 UTC||Need Help??|
work well for fun but I've heard of EV and AnyEvent and lack of documentation . and now I reclame a little help to continue to code with EV and AnyEvent.
:) But did you look for yourself? Even at examples in MANIFEST?
I want someone to show me a simple example with EV that could be used in my case
Can you be specific about what you wish to accomplish?
To me, using POE/EV doesn't seem useful for straight HTTP. I think a better step would be to background the potentially costly step, see Watching long processes through CGI (Aug 02)
Here is one tip for you, you should remove all prototypes sub blah($) because you don't make use of them, they just extra typing -- see Modern Perl for some tips on that
Another tip is to confine your pogram to a single function called Main, see (tye)Re: Stupid question (and one discussion of that template Re^2: RFC: Creating unicursal stars) -- Modern Perl also has an example