Spawn a thread (perlthrtut) or a new process ( Proc::Background )
In reply to Re: How to synchronize the one subroutine by Anonymous Monk in thread How to synchronize the one subroutine by kkavitha