return $inverted{ $values_asc[0] } # default key
Part of the readability problem is that reverse stands for two different functions including an idiomatic trick to invert hashes.
Highlighting that hash inversion was meant can't be wrong...
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Talking about performance, the first line is superfluous copying you could already reverse the arguments. :)
In reply to Re: Default Dropdown Value
by LanX
in thread Default Dropdown Value
by choroba
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |