Help for this page
# TestRole role: package TestRole; ... $c->add_something("123"); my @arr = $c->test_method(); print Dumper(\@arr) . "\n";
'TestRole' requires the method 'test_method' to be implemented by 'Con +sumer'
handles => { test_method => 'elements', add_something => 'push', },
sub add_something { my ($self, %args) = @_; ... sub test_method { # add the 'elements' code here. }
www.com | www.net | www.org
No recent polls found