From: Ian Phillipps Date: Fri, 16 Jun 2000 00:17:19 +0000 (+0100) Subject: PATCH pod/perltie.pod X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=053cadf9bde990f1cdf74a1b295369b6047a2e47;p=p5sagit%2Fp5-mst-13.2.git PATCH pod/perltie.pod Message-ID: <20000616001719.A17108@homer.diplex.co.uk> (only the first hunk, the second hunk had already been done by some other patch) p4raw-id: //depot/cfgperl@6271 --- diff --git a/pod/perltie.pod b/pod/perltie.pod index 49bf989..b39d7d5 100644 --- a/pod/perltie.pod +++ b/pod/perltie.pod @@ -310,14 +310,14 @@ the following output demonstrates: =head2 Tying Hashes -As the first Perl data type to be tied (see dbmopen()), hashes have the -most complete and useful tie() implementation. A class implementing a -tied hash should define the following methods: TIEHASH is the constructor. -FETCH and STORE access the key and value pairs. EXISTS reports whether a -key is present in the hash, and DELETE deletes one. CLEAR empties the -hash by deleting all the key and value pairs. FIRSTKEY and NEXTKEY -implement the keys() and each() functions to iterate over all the keys. -And DESTROY is called when the tied variable is garbage collected. +Hashes were the first Perl data type to be tied (see dbmopen()). A class +implementing a tied hash should define the following methods: TIEHASH is +the constructor. FETCH and STORE access the key and value pairs. EXISTS +reports whether a key is present in the hash, and DELETE deletes one. +CLEAR empties the hash by deleting all the key and value pairs. FIRSTKEY +and NEXTKEY implement the keys() and each() functions to iterate over all +the keys. And DESTROY is called when the tied variable is garbage +collected. If this seems like a lot, then feel free to inherit from merely the standard Tie::Hash module for most of your methods, redefining only the