X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse.pm;h=8c0df3579fbb7e103ca00b936c680004b9f17cfd;hb=deb9a0f32002cd07012c50884a227335b93f1449;hp=c07b20094fdb36e46435bc1fbf12594ddfb7d9bf;hpb=1820fffecb0bd1da64edc16ecde534178b841d14;p=gitmo%2FMouse.git diff --git a/lib/Mouse.pm b/lib/Mouse.pm index c07b200..8c0df35 100644 --- a/lib/Mouse.pm +++ b/lib/Mouse.pm @@ -4,14 +4,14 @@ use 5.006_002; use strict; use warnings; -use base 'Exporter'; +our $VERSION = '0.37_02'; -our $VERSION = '0.33_01'; +use Exporter; use Carp 'confess'; use Scalar::Util 'blessed'; -use Mouse::Util qw(load_class is_class_loaded not_supported); +use Mouse::Util qw(load_class is_class_loaded get_code_package not_supported); use Mouse::Meta::Module; use Mouse::Meta::Class; @@ -20,6 +20,8 @@ use Mouse::Meta::Attribute; use Mouse::Object; use Mouse::Util::TypeConstraints (); +our @ISA = qw(Exporter); + our @EXPORT = qw( extends with has @@ -188,7 +190,7 @@ sub unimport { my $code; if(exists $is_removable{$keyword} && ($code = $caller->can($keyword)) - && (Mouse::Util::get_code_info($code))[0] eq __PACKAGE__){ + && get_code_package($code) eq __PACKAGE__){ delete $stash->{$keyword}; } @@ -452,9 +454,9 @@ L =head1 AUTHORS -Shawn M Moore, C<< >> +Shawn M Moore, Esartak at gmail.comE -Yuval Kogman, C<< >> +Yuval Kogman, Enothingmuch at woobling.orgE tokuhirom @@ -462,7 +464,7 @@ Yappo wu-lee -Goro Fuji (gfx) C<< >> +Goro Fuji (gfx) Egfuji at cpan.orgE with plenty of code borrowed from L and L