in reply to Re^2: Role::Tiny: When to use apply_roles_to_object?
in thread Role::Tiny: When to use apply_roles_to_object?

"does Role::Tiny -> apply_roles_to_object() actually create a new anonymous package and is reblessing the object"

That's a feature.

use strict; use warnings; use feature 'say'; use Role::Tiny; package MyClass { use Moo }; package MyRole { use Moo::Role }; my $o = MyClass->new; Role::Tiny->apply_roles_to_object($o, 'MyRole'); say ref($o);
Output:
MyClass__WITH__MyRole


The way forward always starts with a minimal test.