in reply to Re: move all 0s in an array to the beginning keeping other elements order same
in thread move all 0s in an array to the beginning keeping other elements order same

Add use sort 'stable'; to ensure you get the correct result.
  • Comment on Re^2: move all 0s in an array to the beginning keeping other elements order same
  • Download Code