always enable perl 5.10 features in Definition based classes
This commit is contained in:
parent
8c38f887e0
commit
f037edffa7
1 changed files with 2 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ package WebGUI::Definition;
|
|||
use 5.010;
|
||||
use Moose;
|
||||
use Moose::Exporter;
|
||||
use feature ();
|
||||
use namespace::autoclean;
|
||||
use WebGUI::Definition::Meta::Class;
|
||||
use WebGUI::Definition::Meta::Property;
|
||||
|
|
@ -64,6 +65,7 @@ sub import {
|
|||
my $caller = caller;
|
||||
$class->$import({ into_level => 1 });
|
||||
warnings->unimport('uninitialized');
|
||||
feature->import(':5.10');
|
||||
namespace::autoclean->import( -cleanee => $caller );
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue