in reply to Re: Memoize collision with objects
in thread Memoize collision with objects
I actually added a unique id to all my instances, and it solves the problem:
sub bar{ my ( $self, etc .. ) = @_; return $self->_memBar($self->id(), etc ...); } memoize('_memBar') ; sub _memBar{ my ( $self , $id , etc .. ) ; .. do the real stuff .. }
-- Jerome Eteve
|
|---|