From 0e754a51e44bc30c53fd1195ba3e242db2a03680 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Tue, 7 Sep 2010 12:15:41 -0500 Subject: [PATCH] fix namespace::autoclean use in BestPractices --- lib/WebGUI/BestPractices.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;