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.
In reply to Re^3: References on hashes!
by graff
in thread References on hashes!
by Ace128
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |