No such thing as a small change | |
PerlMonks |
Re: Intercept all object method calls with Mooseby tobyink (Canon) |
on Jul 02, 2012 at 20:31 UTC ( [id://979533]=note: print w/replies, xml ) | Need Help?? |
OK, here's an example of a "shield class": Die::Hard. I'm surprised I couldn't find anything similar on CPAN. Do people think it's worthy of releasing?
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In Section
Seekers of Perl Wisdom
|
|