has 'thing' => (
...
handles => { set_foo => [ set => 'foo' ] },
);
# $self->set_foo(...) calls $self->thing->set('foo', ...)
但我真的想委托给一个对象,特别是一个日期时间对象
has 'thing' => (
...
handles => {
get_month => { datetime ... },
},
);
# $self->get_month calls $self->thing->datetime->month;
我将如何构建句柄才能让它做到这一点?