in reply to Re: Until loop / unique
in thread Until loop / unique
oops sorry, I was unclear here. The hash looks like:
$hash{$key1}{$key2} = $value
The subroutine 'retrieve_kv' already retrieves the other key and corresponding value, my question is how to put it in the loop, so that the keys retrieved are unique (there can be duplicates). Basically sth like:
do { my ($key, $val) = retrieve_kv($hash{$k}); } until (ALL 5 KEYS ARE UNIQUE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Until loop / unique
by LanX (Saint) on Nov 11, 2013 at 22:17 UTC | |
by marinersk (Priest) on Nov 11, 2013 at 22:44 UTC | |
|
Re^3: Until loop / unique
by Jim (Curate) on Nov 11, 2013 at 23:27 UTC |