in reply to Re^2: References on hashes!
in thread References on hashes!
or, alternatively:my %a : shared;
When you stringify and print the values of different references to the same underlying hash, they will still show up with different memory address values (and I can't say as I understand why that is).my %a; share( %a );
In any case, your test script does behave differently with the "share" statement included -- possibly it does what you intend.
|
|---|