{ local *Class::method = sub { ... }; ... }
For anything in "...", called by "..." directly, or called by "..." indirectly, the method will exist.
I'm not sure doing so is a good idea, however. Why do you want to do this?
In reply to Re: adding temporary method to a class
by ikegami
in thread adding temporary method to a class
by jeteve
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |