Fire and forget subs

2015-07-06 Thread Unknown User
What is a good way to fire and forget a sub from a module in perl, in a non blocking mode, preferably without forking or using threads. I may have to run the sub a few times to determine the approx delay for it to run, so i suppose i need a blocking mode for it too. But afterwards, it can run in no

Re: Fire and forget subs

2015-07-06 Thread Andrew Solomon
First question: why do you want to avoid forking and threads? Second question: Are you saying you want the subroutine to run in a process which doesn't have the module as a parent? On Mon, Jul 6, 2015 at 5:43 PM, Unknown User wrote: > What is a good way to fire and forget a sub from a module in

Re: Fire and forget subs

2015-07-06 Thread Jim Gibson
> On Jul 6, 2015, at 9:43 AM, Unknown User wrote: > > What is a good way to fire and forget a sub from a module in perl, in a non > blocking mode, preferably without forking or using threads. > I may have to run the sub a few times to determine the approx delay for it to > run, so i suppose i