So I have found my self in a dilemma, I would like to be able to run the following while loops concurrently.
while(1) { if(-e $templog) { print addtime("Found $templog!\n"); DB_Update_Stats(); CheckTS(); } else { print addtime("Could not find $templog!\n"); CheckTS(); } sleep $config{Database}->{Sleep}; } while(1) { DB_Backup(); sleep 7200; #Backup db every 2 hours }
What do you guys think?
In reply to Concurrent Whiles? by dcthehole
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |