Help for this page

Select Code to Download


  1. or download this
    my $h = TwoWayHash->new(100); # 100 is the "size", ignore for now
    
    ...
    # dad
    print $h->retrieveOneWay("R2L", "dad") # Right 2  Left
    # mam
    
  2. or download this
    tie %r2l, $twowayhash, "R2L"; # right to left
    tie %l2r, $twowayhash, "L2R"; # left to right
    
  3. or download this
    use strict;
    use warnings;
    ...
    }
    
    1;
    
  4. or download this
    use strict;
    use warnings;
    ...
    }
    
    is($h->retrieveOneWay("L2R", "abcd234"), undef, "L2R don't retrieve");