Help for this page

Select Code to Download


  1. or download this
    ## untested "idea" code ##
    package TwoWayHash;
    ...
        my $temp = reverse $self->{data};
        return $temp{shift};
    }
    
  2. or download this
    use TwoWayHash;
    
    ...
        my $b = TwoWayHash->(\%a);
        print "I need ",$$b{'item'};  ## finds key where $a{key} eq 'item'
    }
    
  3. or download this
    print "I need", rv_lookup('item',\%a);