in reply to Re^2: Creating dynamic parent/child relationships
in thread Creating dynamic parent/child relationships
Why would it? SSCCE:
use strict; use warnings; package Foo; use Moo; package Trapezist; use Role::Tiny; sub swing { print "Whoooosh!\n"; } package Trumpeter; use Role::Tiny; sub swing { print "1, 2, ... 1, 2, 3, 4, Hit it!\n"; } package main; my $person1 = Foo->new; Role::Tiny->apply_roles_to_object ($person1, 'Trapezist'); my $person2 = Foo->new; Role::Tiny->apply_roles_to_object ($person2, 'Trumpeter'); $person1->swing; $person2->swing;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Creating dynamic parent/child relationships
by nysus (Parson) on Sep 04, 2019 at 14:44 UTC | |
|
Re^4: Creating dynamic parent/child relationships
by nysus (Parson) on Sep 04, 2019 at 16:22 UTC | |
by hippo (Archbishop) on Sep 05, 2019 at 09:59 UTC | |
by nysus (Parson) on Sep 06, 2019 at 13:59 UTC |