I'm new to perl so please can any one help me. I have to create a script for an application that takes in multiple files and sorts the data in a order and writes it to one file it has to be efficient and fast. I wrote a script that reads the file and sorts it but I'm putting it to an array and the files are like 50MB and its taking up all the memory can any one tell me how i could do this or if some can give me code for it i would be relay grateful. Thank u in advance.