Suppose I have a module that ties hashes, say Tie::Hash::Xyzzy. Now I do this:
package main; # (not necessarily explicit) tie %::, 'Tie::Hash::Xyzzy';
I've verified that when this is done, TIEHASH and DESTROY both get called at the right times, but I cannot figure out how and/or whether it is possible to actually use the package-variable hash as tied (I can't figure out how to tiewise-invoke STORE, FETCH, etc.) and what effect this would have (Tying to the object access to all variables in the package?) -- anymonk know how exactly this works?
In reply to Tying package-variable hashes by premchai21
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |