Updated: Please ignore as this won't be useful for the OP problem due to not handling the package parameter (as noted by Corion).
Moose can create such wrappers for you e.g.See Moose::Manual::Delegationpackage Bogus; use Data::Dump 'pp'; sub foo { printf "foo got %s\n", pp([@_]) } sub bar { printf "bar got %s\n", pp([@_]) } sub baz { printf "baz got %s\n", pp([@_]) } package Tester; use Moose; has 'bogus' => ( is => 'bare', default => 'Bogus', handles => [qw( foo bar baz )] ); package main; my $tester = Tester->new; $tester->bar('bar'); $tester->foo('ram'); $tester->baz('ewe');
In reply to Re: Moose: Accessing subroutines in packages used by Moose class
by Arunbear
in thread Moose: Accessing subroutines in packages used by Moose class
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |