Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: storing data via 2 sibling keys

by btrott (Parson)
on Jun 19, 2001 at 00:56 UTC ( [id://89443]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        package Tie::HashNKeys;
        use strict;
    ...
        sub FETCH {
            $_[0]->{ join $;, sort split /$;/, $_[1] };
        }
    
  2. or download this
        tie my %hash, 'Tie::HashNKeys';
        $hash{'csUsers','csGroups'} = 'foo';
        print $hash{'csGroups','csUsers'};   ## prints 'foo'
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://89443]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-24 04:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found