use MyModule; $myobject = MyModule->new( lots_of_config => 'goes here' # etc etc etc ); $myobject->go();