Skip to content

Instantly share code, notes, and snippets.

@niner
Created August 20, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niner/7e9f4a7b761a94bb811b to your computer and use it in GitHub Desktop.
Save niner/7e9f4a7b761a94bb811b to your computer and use it in GitHub Desktop.
diff --git a/lib/Inline/Perl5.pm6 b/lib/Inline/Perl5.pm6
index 2c77835..b391e17 100644
--- a/lib/Inline/Perl5.pm6
+++ b/lib/Inline/Perl5.pm6
@@ -683,12 +683,12 @@ method init_callbacks {
}
package v6::inline;
- use Sub::Name ();
use mro;
my $package_to_create;
sub import {
+ require Sub::Name;
my ($class, %args) = @_;
my $package = $package_to_create = scalar caller;
foreach my $constructor (@{ $args{constructors} }) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment