Use Moose::_get_caller (unseemly, but maybe more flexible).
Dave Rolsky [Thu, 6 Dec 2007 22:22:21 +0000 (22:22 +0000)]
lib/MooseX/ClassAttribute.pm

index 233585e..9eb4d88 100644 (file)
@@ -87,7 +87,7 @@ sub class_has ## no critic RequireArgUnpacking
 # This is basically copied from Moose.pm
 sub unimport ## no critic RequireFinalReturn
 {
-    my $caller = caller();
+    my $caller = Moose::_get_caller(@_);
 
     no strict 'refs'; ## no critic ProhibitNoStrict
     foreach my $name (@EXPORT)