__PACKAGE__->no_monkey_business; # no new methods/method signatures can happen now. # or perhaps use static_methods qw( MyClass ); #compile this class with only explicitly declared methods allowed. #### # in main: no static_methods MyClass; # uses MyClass with static_methods turned off.