require overload;
use Carp 'confess';
-use Mouse::Util qw/blessed weaken/;
+require Mouse::Util;
sub new {
my $class = shift;
$accessor .= $self.'->{'.$key.'} = '.$value.';' . "\n";
if ($is_weak) {
- $accessor .= 'weaken('.$self.'->{'.$key.'}) if ref('.$self.'->{'.$key.'});' . "\n";
+ $accessor .= 'Mouse::Util::weaken('.$self.'->{'.$key.'}) if ref('.$self.'->{'.$key.'});' . "\n";
}
if ($trigger) {
my $checker = Mouse::TypeRegistry->optimized_constraints($self->associated_class->name)->{$type};
return $checker if $checker;
- return sub { blessed($_) && blessed($_) eq $type };
+ return sub { Mouse::Util::blessed($_) && Mouse::Util::blessed($_) eq $type };
}
sub verify_type_constraint {