http://www.perlmonks.org?node_id=1020164


in reply to Re^3: Data managing problem
in thread Data managing problem

Thank you very much for the detailed explanation.

Couple of follow up questions if you dont mind - Just to make sure I am understanding this right:

  1. The printf is used to ensure that should the line numbers jump from single digit to two ... this has the ability to deal with up to 5 so we can substr accordingly - is that accurate?
  2. Does the sort at the end assume that the input ( and the required output after removing rows ) is sorted or am I missing some way in which the ordering of the original input data is maintained?