Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Lexicals in if() scope gotcha!

by hossman (Prior)
on Mar 31, 2004 at 00:46 UTC ( #341162=note: print w/ replies, xml ) Need Help??


in reply to Re: Lexicals in if() scope gotcha!
in thread Lexicals in if() scope gotcha!

Careful with your wording, the variable does go out of "scope" at the end of the "if" block, but the object refrenced by that variable refrences does not neccessarily get garbage collected.

(As opposed to old ANSI C, where the variable itself was still in scope ... oy, those days sucked.)


Comment on Re: Re: Lexicals in if() scope gotcha!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2015-07-31 05:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls