in reply to hashes & looking up
Modifications to data under %hash will affect data under %iphash as well, since we're pointing to the same reference.# First build us a 'user' key so that our %iphash # can get the username. foreach (keys %hash) { $hash{$_}->{user} = $_; } @iphash{map { $hash{$_}->{'Framed-Address'} }, keys %hash } = values % +hash;
|
|---|