Hi,
Im having a little Perl programming problem, I'm not too advanced, but this is what I want to do. I have a file, with about 30 or so lines like this, pipe delimited:
Name|Email|ID#
I need a subroutine that would open the file and sort all 30 or so lines by ID#, descending order, and THEN only keep the first ten lines, and delete the rest, i.e. so I would have the 10 highest ID numbers.
Any assistance would be surely appreciated!
Im having a little Perl programming problem, I'm not too advanced, but this is what I want to do. I have a file, with about 30 or so lines like this, pipe delimited:
Name|Email|ID#
I need a subroutine that would open the file and sort all 30 or so lines by ID#, descending order, and THEN only keep the first ten lines, and delete the rest, i.e. so I would have the 10 highest ID numbers.
Any assistance would be surely appreciated!