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'