Submitted by shree.technical... on Tue, 03/23/2010 - 09:40.
( categories: perl questions )
I have two subroutines
Example sub1 and sub2, Here each sub will fetch some data from the database and prepare a hash of return values and returns that hash to main program.
Here, I want to call both subroutine as a parallel processes at same time and get the return values from those subs.
In main program I will call both subs in a dummy while loop and wait for 10 Minutes and again will call the same subs after 10 Minutes;
Please any one tell me how can I do this....
-Thanks In Advance
Shree

use
use fork();
http://perldoc.perl.org/functions/fork.html