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

imran javaid imranjj at gmail.com
Fri Jan 9 09:50:37 PST 2009


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
>


More information about the Chicago-talk mailing list