D
doni
I have a doubt regarding extracting the inner key from a hash of
hashes.
Here is my hash structure.
%hash=(
mac-address1=>{
destn_address1, distance1
destn_address2, distance2
destn_address3, distance3
}
mac-address2=>{
destn_address1, distance1
destn_address2, distance2
destn_address3, distance3
}
mac-address3=>{
destn_address1, distance1
destn_address2, distance2
destn_address3, distance3
}
);
I was able to extract the distance portion like this.
$hash{$mac-address1}->{$destn address1}
I want to compare the destination address to see if it matches a
particular destination address. Is there anyway using a for-each loop
or any other means, can I extract the value of destination address.
Can anyone let me know, how can I do this or is there anyway can I do
it.
Thanks,
Sekar
hashes.
Here is my hash structure.
%hash=(
mac-address1=>{
destn_address1, distance1
destn_address2, distance2
destn_address3, distance3
}
mac-address2=>{
destn_address1, distance1
destn_address2, distance2
destn_address3, distance3
}
mac-address3=>{
destn_address1, distance1
destn_address2, distance2
destn_address3, distance3
}
);
I was able to extract the distance portion like this.
$hash{$mac-address1}->{$destn address1}
I want to compare the destination address to see if it matches a
particular destination address. Is there anyway using a for-each loop
or any other means, can I extract the value of destination address.
Can anyone let me know, how can I do this or is there anyway can I do
it.
Thanks,
Sekar