$ perl test.pl --> should run if there is no test.pl running. $ perl test.pl ---> should abort if there is a test.pl running already. $ perl test.pl --test --> should run even if test.pl is already running. $ perl test.pl --test --> should abort if there is a (test.pl --test) running as well.