Tony Heal wrote:
I have an array that will have these values. Each value is part of a file name. I need to keep the highest (numerically) 5 files and delete the rest. What is the easiest to sort the array.
Break each file name into fields and sort by most significant field to least. Use the Schwartzian Transform <http://en.wikipedia.org/wiki/Schwartzian_Transform> to sort. See: perldoc perlretut perldoc perlre -- Just my 0.00000002 million dollars worth, Shawn "For the things we have to learn before we can do them, we learn by doing them." Aristotle -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/