|Do you know where your variables are?
Sort lines in a fileby blackdragoen (Novice)
|on Feb 14, 2008 at 12:44 UTC
blackdragoen has asked for the wisdom of the Perl Monks concerning the following question:
Hi I need to sort a file in.txt as shown below
and need the sorted one as below
i used tell and seek function to swap this. But one of my main aim is performance ,because its going to handle a large files about 500 Mb to 1Gb I wrote the below code. It works fine but takes time for large files. Any suggestions please Regards, blackdragoen