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.
|
|---|