There's more than one way to do things | |
PerlMonks |
Re^2: move all 0s in an array to the beginning keeping other elements order sameby ikegami (Patriarch) |
on May 02, 2014 at 17:05 UTC ( [id://1084817]=note: print w/replies, xml ) | Need Help?? |
Add use sort 'stable'; to ensure you get the correct result.
In Section
Seekers of Perl Wisdom
|
|