You can use fork to do this effectively.
There are module that can save you time coding that could do this for you too.
Parallel::ForkManager, AnyEvent::ForkManager, Proc::Fork and Apache::fork just to name a few.
There are more modules that do fork.
Updated: or try forks::BerkeleyDB
Updated 2: In your two scripts you have warnings twice -w and use warnings; they both do the same thing.
In reply to Re: BerkeleyDB question
by $h4X4_|=73}{
in thread BerkeleyDB question
by Perl_Love
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |