Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: lexicals are all the same scalar and never go out of scope?

by moritz (Cardinal)
on Dec 06, 2011 at 09:07 UTC ( #941974=note: print w/ replies, xml ) Need Help??


in reply to lexicals are all the same scalar and never go out of scope?

If I comment out the readonly, and it reaches the end, you will see 4 references, to the same, or is that different scalar?

Different scalars, as you can easily see from the output of Data::Dumper.

Yet the readonly flag proves that its the same scalar

Huh? You've removed the readonly flag for this run. Otherwise you wouldn't get any non-error output at all.


Comment on Re: lexicals are all the same scalar and never go out of scope?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2015-07-06 00:35 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 (68 votes), past polls