start page | rating of books | rating of authors | reviews | copyrights

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: 8.154 Tie::Handle Chapter 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::Handle Perl in a Nutshell Next: 8.156 Tie::RefHash
8.154 Tie::Handle Book Index 8.156 Tie::RefHash

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.