in reply to Re: Sorting @lines
in thread Sorting @lines

That will break if any of the elements have spaces in them. Probably not very likely, but a safer way to write a GRT is:
my @sorted = map{(split(/\0/))[1]} sort map{sprintf"%09d%09d%s%s\0%s",(split/\./)[0..3],$_} @lines;

-Blake