fixes for the applied_attribute stuff in moose 2
[catagits/Reaction.git] / lib / Reaction / Class.pm
index f2f8c3a..7077522 100644 (file)
@@ -221,10 +221,10 @@ sub import {
   my $self = shift;
   my $pkg = caller;
   my @args = @_;
-  &strict::import;
-  &warnings::import;
+  strict->import;
+  warnings->import;
   $self->do_import($pkg, \@args);
-  goto &{$self->next_import};
+  goto &{$self->next_import} if $self->next_import;
 }
 
 sub next_import {