fix namespace::autoclean use in BestPractices
This commit is contained in:
parent
e61b997b39
commit
0e754a51e4
1 changed files with 2 additions and 1 deletions
|
|
@ -33,11 +33,12 @@ This module is the equivalent of adding the following to your module:
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
sub import {
|
sub import {
|
||||||
|
my $caller = caller;
|
||||||
strict->import;
|
strict->import;
|
||||||
warnings->import;
|
warnings->import;
|
||||||
warnings->unimport('uninitialized');
|
warnings->unimport('uninitialized');
|
||||||
feature->import(':5.10');
|
feature->import(':5.10');
|
||||||
namespace::autoclean->import;
|
namespace::autoclean->import( -cleanee => $caller );
|
||||||
}
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue