Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Circular references and Garbage collection.

by BUU (Prior)
on Aug 03, 2002 at 05:03 UTC ( [id://187298]=note: print w/replies, xml ) Need Help??


in reply to Circular references and Garbage collection.

So when you create a 'hard reference', it increments the ref counter. However, what happens if you use a soft ref? surely $baz='foo'; print ${'baz'} wont muck with the ref counter?
  • Comment on Re: Circular references and Garbage collection.

Replies are listed 'Best First'.
Re: Re: Circular references and Garbage collection.
by Anonymous Monk on Aug 03, 2002 at 12:21 UTC
    Symbolic references only can access global variables which never clean themselves up because they are always pointed at by the package table. This is in addition to all of the other reasons that it is stupid to use symbolic references when you have any decent alternative.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (1)
As of 2024-04-24 15:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found