[Chicago-talk] Do I need a fork for this?

Richard Reina richard at rushlogistics.com
Fri Jan 9 10:37:07 PST 2009


I'm pretty sure I can't as this code is going to have to run on some older machine in the office that run older versions of perl and cannot be updated. Is there an easy way to do it with fork?

---- Chicago.pm chatter <chicago-talk at pm.org> wrote:
>
> Try threads
> http://search.cpan.org/~jdhedden/threads-1.71/threads.pm
> 
> On Fri, Jan 9, 2009 at 11:13 AM, Richard Reina
> <richard at rushlogistics.com> wrote:
> > I am trying to spin off a process (subroutine actually) so that my program and will go on to do other things ( namely ask the user from some input ) while the the subroutine is doing it's work.
> >
> > Something like:
> >
> > # this sub is going to take a few minutes
> > my ($results) = list_compiler($id);
> >
> > # this is where we get hung up waiting for the above sub to finish.
> > # Sure would be nice to be able to get some info from the user while we
> > # are waiting. Like:
> > print "While I am compiling this list for you, can you tell me how many people are working in the office today?\n";
> >
> >
> >
> > Can someone tell me how I can go about doing this?
> >
> > Thanks,
> >
> > Richard
> >
> > _______________________________________________
> > Chicago-talk mailing list
> > Chicago-talk at pm.org
> > http://mail.pm.org/mailman/listinfo/chicago-talk
> >
> _______________________________________________
> Chicago-talk mailing list
> Chicago-talk at pm.org
> http://mail.pm.org/mailman/listinfo/chicago-talk
> 


More information about the Chicago-talk mailing list