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
Yes, I watch meteor showers
No, I do not watch meteor showers
My meteors prefer to bathe
Results (194 votes). Check out past polls.