|Problems? Is your data what you think it is?|
Need help in getting started with POEby smarthacker67 (Beadle)
|on Jun 16, 2020 at 19:08 UTC ( #11118148=perlquestion: print w/replies, xml )||Need Help??|
smarthacker67 has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks, From couple of days, I am doing some research about POE which seems a good candidate to solve my problem.
After searching a lot and trying from code from cookbook Yet not clear on how to write my code can some please help me with sample.
here is what I am looking for.
There will be a script running in an infinite loop that will never end. eg I found this but now want to add own sub that will so that once I receive the event from above code. I can process in the background. How can I add new handler in the following code will a new key eg _my_function => \&get_work_done will work. Sorry completely new to POE concept.
* I wish to run a script in continue never-ending loop unless user kills it lets call it Worker.
* want to send some work i.e few parameters to worker eg host and command.
Back to Seekers of Perl Wisdom