# do nothing use Devel::StrictObjectHash; # replace CORE::GLOBAL::bless (not really recommended) use Devel::StrictObjectHash strict_bless => 'global'; # turn on debugging use Devel::StrictObjectHash debug => 1; # turn on both use Devel::StrictObjectHash ( strict_bless => 'global', debug => 1 ); # replace bless in these modules only use Devel::StrictObjectHash ( strict_bless => [ qw(MyModule HisModule HerModule) ] ); # allow auto-vivification in routines other than 'new' # as a string use Devel::StrictObjectHash ( allow_autovivification_in => "_init" ); # as a reg_ex use Devel::StrictObjectHash ( allow_autovivification_in => qr/create_.*|_init/ );