unless ( caller ) { # here go the tests that are only called when the module is run as: # perl Module.pm }