Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: difference between pointer and referrence in perl

by GrandFather (Saint)
on Aug 26, 2009 at 20:59 UTC ( #791458=note: print w/replies, xml ) Need Help??

in reply to difference between pointer and referrence in perl

Perl's references are more than just C pointers. Perl reference counts objects so the reference object that holds onto the 'address' of another object is more like a C++ smart pointer with a whole world of semantics hidden under a fairly conventional looking syntax. Most of the time you needn't worry about the extra semantics, it just works. Occasionally you run into memory leaks with interesting structures that contain reference loops that have to be forcibly broken before the Perl can dispose of the object.

True laziness is hard work
  • Comment on Re: difference between pointer and referrence in perl

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2021-06-14 17:34 GMT
Find Nodes?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)

    Results (64 votes). Check out past polls.