Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (12)
As of 2017-07-20 12:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (301 votes). Check out past polls.