Help for this page

Select Code to Download


  1. or download this
    # $user_by_uid{$uid}->{$host}
    $var= $user_by_uid{$uid}
    $key= $host
    
  2. or download this
    sub my_exists {
      my ($hash_ref,$key)= @_;
      return $hash_ref and exists $hash_ref->{$key}
    }
    
  3. or download this
    sub my_fake_exists {
      my ($hash_ref,$key)=@_;
      $hash_ref={} if not defined $hash_ref; #fake autoviv
      return exists $hash_ref->{$key}; # do the lookup
    }