Edit D:\app\Administrator\product\11.2.0\dbhome_1\perl\html\lib\Tie\RefHash.html
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Tie::RefHash - use references as hash keys</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rev="made" href="mailto:" /> </head> <body style="background-color: white"> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr><td class="block" style="background-color: #cccccc" valign="middle"> <big><strong><span class="block"> Tie::RefHash - use references as hash keys</span></strong></big> </td></tr> </table> <!-- INDEX BEGIN --> <div name="index"> <p><a name="__index__"></a></p> <ul> <li><a href="#name">NAME</a></li> <li><a href="#synopsis">SYNOPSIS</a></li> <li><a href="#description">DESCRIPTION</a></li> <li><a href="#example">EXAMPLE</a></li> <li><a href="#thread_support">THREAD SUPPORT</a></li> <li><a href="#storable_support">STORABLE SUPPORT</a></li> <li><a href="#relic_support">RELIC SUPPORT</a></li> <li><a href="#maintainer">MAINTAINER</a></li> <li><a href="#author">AUTHOR</a></li> <li><a href="#see_also">SEE ALSO</a></li> </ul> <hr name="index" /> </div> <!-- INDEX END --> <p> </p> <h1><a name="name">NAME</a></h1> <p>Tie::RefHash - use references as hash keys</p> <p> </p> <hr /> <h1><a name="synopsis">SYNOPSIS</a></h1> <pre> require 5.004; use Tie::RefHash; tie HASHVARIABLE, 'Tie::RefHash', LIST; tie HASHVARIABLE, 'Tie::RefHash::Nestable', LIST;</pre> <pre> untie HASHVARIABLE;</pre> <p> </p> <hr /> <h1><a name="description">DESCRIPTION</a></h1> <p>This module provides the ability to use references as hash keys if you first <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#tie"><code>tie</code></a> the hash variable to this module. Normally, only the keys of the tied hash itself are preserved as references; to use references as keys in hashes-of-hashes, use Tie::RefHash::Nestable, included as part of Tie::RefHash.</p> <p>It is implemented using the standard perl TIEHASH interface. Please see the <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#tie"><code>tie</code></a> entry in <code>perlfunc(1)</code> and <code>perltie(1)</code> for more information.</p> <p>The Nestable version works by looking for hash references being stored and converting them to tied hashes so that they too can have references as keys. This will happen without warning whenever you store a reference to one of your own hashes in the tied hash.</p> <p> </p> <hr /> <h1><a name="example">EXAMPLE</a></h1> <pre> use Tie::RefHash; tie %h, 'Tie::RefHash'; $a = []; $b = {}; $c = \*main; $d = \"gunk"; $e = sub { 'foo' }; %h = ($a => 1, $b => 2, $c => 3, $d => 4, $e => 5); $a->[0] = 'foo'; $b->{foo} = 'bar'; for (keys %h) { print ref($_), "\n"; }</pre> <pre> tie %h, 'Tie::RefHash::Nestable'; $h{$a}->{$b} = 1; for (keys %h, keys %{$h{$a}}) { print ref($_), "\n"; }</pre> <p> </p> <hr /> <h1><a name="thread_support">THREAD SUPPORT</a></h1> <p><a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/lib/Tie/RefHash.html">the Tie::RefHash manpage</a> fully supports threading using the <code>CLONE</code> method.</p> <p> </p> <hr /> <h1><a name="storable_support">STORABLE SUPPORT</a></h1> <p><a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/lib/Storable.html">the Storable manpage</a> hooks are provided for semantically correct serialization and cloning of tied refhashes.</p> <p> </p> <hr /> <h1><a name="relic_support">RELIC SUPPORT</a></h1> <p>This version of Tie::RefHash seems to no longer work with 5.004. This has not been throughly investigated. Patches welcome ;-)</p> <p> </p> <hr /> <h1><a name="maintainer">MAINTAINER</a></h1> <p>Yuval Kogman <<a href="mailto:nothingmuch@woobling.org">nothingmuch@woobling.org</a>></p> <p> </p> <hr /> <h1><a name="author">AUTHOR</a></h1> <p>Gurusamy Sarathy <a href="mailto:gsar@activestate.com">gsar@activestate.com</a></p> <p>'Nestable' by Ed Avis <a href="mailto:ed@membled.com">ed@membled.com</a></p> <p> </p> <hr /> <h1><a name="see_also">SEE ALSO</a></h1> <p><code>perl(1)</code>, <code>perlfunc(1)</code>, <code>perltie(1)</code></p> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr><td class="block" style="background-color: #cccccc" valign="middle"> <big><strong><span class="block"> Tie::RefHash - use references as hash keys</span></strong></big> </td></tr> </table> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de