P is for Practical | |
PerlMonks |
Re: question about: my $a AND sort {$a <=> $b} keys %hashby choroba (Cardinal) |
on Aug 06, 2015 at 09:09 UTC ( [id://1137630]=note: print w/replies, xml ) | Need Help?? |
Turn warnings on:
That's why you should never use $a and $b as variable names. sort needs access to the package variable $a (documented at $a). Update: link to perlvar added.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
In Section
Seekers of Perl Wisdom
|
|