http://www.perlmonks.org?node_id=1075561


in reply to RESOLVED: How can the same sub have 2 different references

diag 'simple_obj->get_addr():        ' . simple_obj->get_addr();

This one calls get_addr and prints its return value, which is a reference to add_attrib, not a reference to get_addr. The other two print references to get_addr without calling it.