Why not just use the diff command? Man diff Paul Kraus ----------------------- PEL Supply Company Network Administrator
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 07, 2004 3:22 PM > To: [EMAIL PROTECTED] > Subject: Question about CPAN's Text::Diff > > > > > > Hi all: > > This newbie would like to compare two files, let's say File1 and File2. > I > want to put the difference from File2 only, into a new file, File3. > > For example: > > File1.txt > oranges > apples > bananas > > File2.txt > apples > kiwi > bananas > > The result I want for File3 is the new entry in File2, which is kiwi. (I > don't care that oranges was in File1 and not File2.) > > Can the Text:Diff module (or some other means) do this ? (I looked at the > Text::Diff doc and it wasn't obvious to me. I hope to play with this > later > this evening or tomorrow.) > > Thanks in advance for your help (and for your past help as well !) > > - Stuart > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>