Skip to content

Instantly share code, notes, and snippets.

@typester
Created November 2, 2012 07:51
Show Gist options
  • Save typester/3999350 to your computer and use it in GitHub Desktop.
Save typester/3999350 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
use lib 'lib';
package Role {
use Any::Moose '::Role';
sub hoge {
__PACKAGE__;
}
};
package Foo {
use Any::Moose;
with 'Role1';
sub hoge {
__PACKAGE__;
}
};
warn Foo->new->hoge;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment