package.pl: package mutex; sub update { # do something and log it &main'log("can't do something"); } 1;