in reply to Re^2: reverse sort arrays in subroutines
in thread reverse sort arrays in subroutines
I was probably not explicit enough. Let's take an example:
If we first reverse it, we get1 3 2
and then we sort it to get2 3 1
1 2 3
On the other hand, if we sort it first, we get
and we can then reverse it to1 2 3
3 2 1
Functions are not called left to right, but from the innermost to the outermost, i.e. rather right to left.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
|
---|
In Section
Seekers of Perl Wisdom