in reply to Re^2: FlatFile Sort Help
in thread FlatFile Sort Help

Remove the while.
while (<LOOPFILE>) { # Reads first line foreach (sort <LOOPFILE>) { # Reads the rest of the line.

So you'll end up printing everything but the first line.