*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> perl5/Tie::RefHash (3)              
Title
Content
Arch
Section
 

Contents


Tie::RefHash(3)						       Tie::RefHash(3)


NAME    [Toc]    [Back]

     Tie::RefHash - use	references as hash keys

SYNOPSIS    [Toc]    [Back]

	 require 5.004;
	 use Tie::RefHash;
	 tie HASHVARIABLE, 'Tie::RefHash', LIST;

	 untie HASHVARIABLE;

DESCRIPTION    [Toc]    [Back]

     This module provides the ability to use references	as hash	keys if	you
     first tie the hash	variable to this module.

     It	is implemented using the standard perl TIEHASH interface.  Please see
     the tie entry in perlfunc(1) and perltie(1) for more information.

EXAMPLE    [Toc]    [Back]

	 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";
	 }

AUTHOR    [Toc]    [Back]

     Gurusamy Sarathy	     [email protected]

VERSION    [Toc]    [Back]

     Version 1.2    15 Dec 1996

SEE ALSO    [Toc]    [Back]

      
      
     perl(1), perlfunc(1), perltie(1)


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
revoke Tru64 Void all references to a file
refer NetBSD preprocess bibliographic references for groff
count_dev FreeBSD get total number of references to a device
vcount OpenBSD get total number of references to a device
vcount FreeBSD get total number of references to a device
perlreftut OpenBSD Mark's very short tutorial about references
refer OpenBSD preprocess bibliographic references for groff
refer FreeBSD preprocess bibliographic references for groff
perlref OpenBSD Perl references and nested data structures
perlref IRIX Perl references and nested data structures
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service