Two questions… similar answers… same module
I recently answered the following two Perl questions on Stackoverflow:
- How do I make a new Moose class and instantiate an object of that class at runtime?
- How do you replace a method of a Moose object at runtime?
… with pretty much identical answers using MooseX::SingletonMethod.
Not bad to be able to kill two birds with one stone and also pimp my module at same time🙂
NB. In fact it was three birds with this one stone. You will have to look in Google cache to find the now closed Building a Moose class at runtime and tuning it (2415367) question.