my $pkg = $self->name;
no strict 'refs';
- no warnings 'redefine';
+ no warnings 'redefine', 'once';
*{ $pkg . '::' . $name } = $code;
}
my $code = do{
no strict 'refs';
+ no warnings 'once';
*{ $self->{package} . '::' . $method_name }{CODE};
};
or $self->throw_error('You must define a method name');
return $self->{methods}{$method_name} ||= do{
- my $code = do{ no strict 'refs'; *{$self->{package} . '::' . $method_name}{CODE} };
+ my $code = do{
+ no strict 'refs';
+ no warnings 'once';
+ *{$self->{package} . '::' . $method_name}{CODE};
+ };
($code && $self->_code_is_mine($code)) ? $code : undef;
};
=head1 VERSION
-This document describes Mouse version 0.37_06
+This document describes Mouse version 0.38
=head1 SEE ALSO