in reply to [Solved]Easiest way to protect process from duplication.
use Proc::PID::File; die "Already running!" if Proc::PID::File->running(); [download]