Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Syntactic Confectionery Delight
 
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 about the Monastery: (12)
As of 2014-04-21 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (495 votes), past polls