![]() |
|
The stupid question is the question not asked | |
PerlMonks |
Re^3: Lookup closest hash keyby choroba (Archbishop) |
on Oct 09, 2014 at 07:17 UTC ( #1103261=note: print w/replies, xml ) | Need Help?? |
my ($answer) creates list context, so the [0] at the end is not needed: it is a list assignment, the first element on the left gets the first element on the right. With the index at the end, you can drop the parentheses on the left, as it is a scalar assignment:
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
In Section
Seekers of Perl Wisdom
|
|