1. Toby Inkster
  2. p5-object-role

Commits

Toby Inkster  committed 5549b5b

Avoid circular dependency with Object::AUTHORITY

  • Participants
  • Parent commits a4bcc48
  • Branches default

Comments (0)

Files changed (1)

File lib/Object/Role.pm

View file
 }
 
 use Sub::Name qw/subname/;
-use Object::AUTHORITY;
+
+BEGIN {
+	eval 'use Object::AUTHORITY; 1' or do {
+		*AUTHORITY = sub { $Object::Role::AUTHORITY }
+	}
+}
 
 sub parse_arguments
 {
 
 =head1 SEE ALSO
 
-L<Exporter>.
+L<Object::DOES>, L<Object::AUTHORITY>.
 
 =head1 AUTHOR