Mohit_jain01 wrote: > Hi, > > I am facing a problem with text file manipulation with Perl. > > I have a file with over 2 lac lines of data. > I need to find the duplicates(strings) in the file and copy those records into > another file. > > Is there a function/module in Perl by which I can read the duplicates in a file at > one go and print them > on to another file.
Hi. Before we can help you we need to know a little more of your problem. Are you looking for duplicate lines in the file, or duplicate strings defined in some other way? How big is the file you want to read (how many lines or strings do you want to compare)? There are modules which will help you write your program, but exactly how you go about it depends on the details of your problem. Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]