Wouldn't the following be sufficient?
package Class::FlyweightWrapper; ... sub can { my $self = $object{shift(@_)}; my ($method_name) = @_; my $sub = $self->can($method_name) or return; sub { $object{shift(@_)}->$method_name( @_ ) } }
In reply to Re: Re: Re: Re: Re: Re: Re: Why breaking can() is acceptable
by simonm
in thread Why breaking can() is acceptable
by tilly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |