while(!(($worker1Finished eq "true")&&($worker2Finished eq "true"))) { print "."; sleep(1); }