my %users = ( george => { total_money => "42", max_money => "100" }, lindsay => { total_money => "125", max_money => "1000" }, }; my $userref = \$users{$userid}; # the rest of the program accesses $userref specifically ...