Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: How can the same sub have 2 different references

by dsheroh (Prior)
on Feb 20, 2014 at 09:18 UTC ( #1075561=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1075561]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2016-09-25 04:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (464 votes). Check out past polls.