™.. Tie::RefHash - Online Linux Manual PageSection : 3pm
Updated : 2009-02-12
Source : perl v5.10.1
Note : Perl Programmers Reference Guide
NAMETie::RefHash − use references as hash keys
SYNOPSIS require 5.004;
use Tie::RefHash;
tie HASHVARIABLE, 'Tie::RefHash', LIST;
tie HASHVARIABLE, 'Tie::RefHash::Nestable', LIST;
untie HASHVARIABLE;
DESCRIPTIONThis module provides the ability to use references as hash keys if you first \*(C`tie\*(C'\fR 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. It is implemented using the standard perl TIEHASH interface. Please see the \*(C`tie\*(C'\fR entry in \fIperlfunc\fR\|(1) and \fIperltie\fR\|(1) for more information. 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.
EXAMPLE 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";
}
tie %h, 'Tie::RefHash::Nestable';
$h{$a}−>{$b} = 1;
for (keys %h, keys %{$h{$a}}) {
print ref($_), "\n";
}
THREAD SUPPORTTie::RefHash fully supports threading using the \*(C`CLONE\*(C'\fR method.
STORABLE SUPPORTStorable hooks are provided for semantically correct serialization and cloning of tied refhashes.
RELIC SUPPORTThis version of Tie::RefHash seems to no longer work with 5.004. This has not been throughly investigated. Patches welcome ;−)
MAINTAINERYuval Kogman <nothingmuch@woobling.org>
AUTHORGurusamy Sarathy gsar@activestate.com 'Nestable' by Ed Avis ed@membled.com
SEE ALSOperl (1), perlfunc (1), perltie (1) 0
Johanes Gumabo
Data Size : 8,096 byte
man-Tie::RefHash.3pmBuild : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 4 / 181,632
Visitor ID : :
Visitor IP : 18.227.140.100 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (parse_manual_page_|249|Tie::RefHash.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\|
) (htmlprn|149|Tie::RefHash.3pm|36/37|.el══─{─══. ds -- — |.el══─{─══. ds -- \|\(em\|
) (parse_manual_page_|249|Tie::RefHash.3pm|41|br══─}─══|'br══─}─══
) (htmlprn|149|Tie::RefHash.3pm|41|'br══─}─══ |'br══─}─══
) (rof_nr_x|149|Tie::RefHash.3pm|51/52|\nF|.ie \nF ══─{─══. de IX
) (rof_unit_scale_px|41|Tie::RefHash.3pm|51/52|F|.ie \nF ══─{─══. de IX
) (rof_if|19|Tie::RefHash.3pm|51/52|\nF|.ie \nF ══─{─══. de IX
) (htmlprn|149|Tie::RefHash.3pm|51/52|.ie \nF ══─{─══. de IX|.ie \nF ══─{─══. de IX
) (rof_escape_sequence|91|Tie::RefHash.3pm|53|\$1\t\\n%\t"\\$2" |. tm Index:\\$1\t\\n%\t"\\$2"
) (parse_manual_page_|249|Tie::RefHash.3pm|57|══─}─══|.══─}─══
) (htmlprn|149|Tie::RefHash.3pm|57|.══─}─══ |.══─}─══
) (rof_escape_sequence|91|Tie::RefHash.3pm|147|\*(C`tie\*(C'\fR the hash variable to this module. Normally, only the |first \f(CW\*(C`tie\*(C'\fR the hash variable to this module. Normally, only the
) (rof_escape_sequence|91|Tie::RefHash.3pm|153|\*(C`tie\*(C'\fR entry in \fIperlfunc\fR\|(1) and \fIperltie\fR\|(1) for more information. |see the \f(CW\*(C`tie\*(C'\fR entry in \fIperlfunc\fR\|(1) and \fIperltie\fR\|(1) for more information.
) (rof_escape_sequence|91|Tie::RefHash.3pm|184|\*(C`CLONE\*(C'\fR method. |Tie::RefHash fully supports threading using the \f(CW\*(C`CLONE\*(C'\fR method.
)