in reply to Re: Easiest way to protect process from duplication.in thread [Solved]Easiest way to protect process from duplication.
use Fcntl qw(LOCK_EX LOCK_NB);
die "Another instance is already running" unless flock DATA, LOCK_EX|L
1. Keep it simple
2. Just remember to pull out 3 in the morning
3. A good puzzle will wake me up
Many. I like to torture myself
0. Socks just get in the way
Results (8 votes). Check out past polls.