B
bayxarea-usenet
How can I call a subroutine / function that is either local to the .pl
or from a module and not wait for it to return - rather continue on ...
I have a routine that is already wrapped in a function I wrote in a
module I 'use'. My program needs to call it and then I want to enter a
loop to monitor an output file at the OS that will be created from this
function (interacts with other software) - but I don't know how to
enter the loop after the call to the subroutine since Perl will wait
there at that line until it returns....
My monitor loop is necessary so I can update the GUI and time out after
X seconds and provide feedback that the process took longer than the
timer.
Any clues?
Thanks,
John
or from a module and not wait for it to return - rather continue on ...
I have a routine that is already wrapped in a function I wrote in a
module I 'use'. My program needs to call it and then I want to enter a
loop to monitor an output file at the OS that will be created from this
function (interacts with other software) - but I don't know how to
enter the loop after the call to the subroutine since Perl will wait
there at that line until it returns....
My monitor loop is necessary so I can update the GUI and time out after
X seconds and provide feedback that the process took longer than the
timer.
Any clues?
Thanks,
John