diff --git a/lib/WebGUI/BestPractices.pm b/lib/WebGUI/BestPractices.pm index 424290c2d..e481d1528 100644 --- a/lib/WebGUI/BestPractices.pm +++ b/lib/WebGUI/BestPractices.pm @@ -33,11 +33,12 @@ This module is the equivalent of adding the following to your module: =cut sub import { + my $caller = caller; strict->import; warnings->import; warnings->unimport('uninitialized'); feature->import(':5.10'); - namespace::autoclean->import; + namespace::autoclean->import( -cleanee => $caller ); } 1;