lookup by username is trivial (my %otherkeys = %{$usernames{that_username}})$usernames{username} = { key1 => value1, ...};
foreach my $key (keys %usernames) { if($usernames{$key}->{Framed-Address} eq $ip_i_look_for) { print "ip $ip_i_look_for owned by user $key \n"; last; } }
In reply to Re: hashes & looking up
by cianoz
in thread hashes & looking up
by toadi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |