X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=lib%2FMouse%2FUtil%2FTypeConstraints.pm;h=c6f7b175ae8846aff8c13ec4a8e7a9c6f18c22de;hp=4ff7100596c79ac1cbec42833a6e6dd2371b150a;hb=065f79e7cd03765f26c6ea276aaf9b3c5897886a;hpb=02d8cd0afb685d4a3b8e6dcf6e9deec01c9b9e6e diff --git a/lib/Mouse/Util/TypeConstraints.pm b/lib/Mouse/Util/TypeConstraints.pm index 4ff7100..c6f7b17 100644 --- a/lib/Mouse/Util/TypeConstraints.pm +++ b/lib/Mouse/Util/TypeConstraints.pm @@ -2,7 +2,7 @@ package Mouse::Util::TypeConstraints; use Mouse::Util qw(does_role not_supported); # enables strict and warnings use Carp qw(confess); -use Scalar::Util qw(blessed); +use Scalar::Util (); use Mouse::Meta::TypeConstraint; use Mouse::Exporter; @@ -174,7 +174,7 @@ sub role_type { my $role = $options->{role} || $name; return _create_type 'subtype', $name => ( as => 'Object', - optimized_as => sub { blessed($_[0]) && does_role($_[0], $role) }, + optimized_as => sub { Scalar::Util::blessed($_[0]) && does_role($_[0], $role) }, type => 'Role', ); @@ -403,7 +403,7 @@ Mouse::Util::TypeConstraints - Type constraint system for Mouse =head1 VERSION -This document describes Mouse version 0.40_01 +This document describes Mouse version 0.40_02 =head2 SYNOPSIS