fix namespace::autoclean use in BestPractices

This commit is contained in:
Graham Knop 2010-09-07 12:15:41 -05:00
parent e61b997b39
commit 0e754a51e4

View file

@ -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;