Printing addresses of Perl object methods? (for redefining Perl class methods)
问题 I saw How can I redefine Perl class methods?, so I wanted to understand better how it works through an example. (Related: How do I reference methods? - PerlMonks) If I have an object $obj which is an instance of some Class which has Class::method , then $obj also has $obj->method ; I assume the simplified memory layout in that case would look something like this (tables made in LaTeX Table Generator; for the below one, src here): ... that is, at (say) address 0x1000 we have the $obj->method ,