Why compare? Why not just copy the input to the output each time? Eric
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Beri Veera-ext, Reddy Sent: Monday, February 26, 2007 10:05 AM To: Brian Raven; ActivePerl Subject: RE: How to compare two files and update to second file Hi, I am using Perl. I have to compare INPUT text file and OUTPUT text file. If OUTPUT file is not have some text which is there in INPUT file. I need to write that text to OUTPUT file. Ex: INPUT file has (CADITEM, BSHITEM, ToolItem ) OUTPUT file has (CADITEM, ToolItem) I need to compare to files and write BSHITEM to OUTPUT file. My problem: I am not able read two file at same time. I am getting only from one file. Please help me how to read two files and compare. Thanks and Regards Karunakara Reddy _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
