Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: 8.154 Tie::HandleChapter 8
Standard Modules
Next: 8.156 Tie::RefHash
 

8.155 Tie::Hash, Tie::StdHash

Provides skeletal methods for hash-tying classes. Tie::Hash provides a new method, as well as the methods TIEHASH, EXISTS, and CLEAR. The Tie::StdHash package inherits from Tie::Hash and causes tied hashes to behave like standard hashes, allowing for selective method overloading. It provides most methods required for hashes. The new method is provided as backup in case a class has no TIEHASH method.

To write your own tied hashes, the methods listed here are required. See the perltie manpage for more detailed information and for examples.


Previous: 8.154 Tie::HandlePerl in a NutshellNext: 8.156 Tie::RefHash
8.154 Tie::HandleBook Index8.156 Tie::RefHash