[pve-devel] [PATCH 3/9] add find_loopdev sub
Dietmar Maurer
dietmar at proxmox.com
Wed Aug 26 16:09:32 CEST 2015
> Somehow I missed this before, but this looks like a generic "find key
> for value" function.
> If getting the first element of
> grep { $hash->{$_} eq $key } keys %$hash
> is too much typing work, maybe a generic find in Tools might be called
> for? (The only difference to grep is that it's only looking for a single
> key, while grep returns a list.)
not sure it that improve things much. I like find_loopdev, because the name
indicates the purpose...
More information about the pve-devel
mailing list