Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: How can the same sub have 2 different references

by dsheroh (Parson)
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.


Comment on Re: How can the same sub have 2 different references
Select or Download Code

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 musing on the Monastery: (7)
As of 2014-08-31 07:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls