Re: Perl code for comparing two files

2009-05-09 Thread John W. Krahn
Wagner, David --- Senior Programmer Analyst --- CFS wrote: -Original Message- From: Anirban Adhikary [mailto:anirban.adhik...@gmail.com] Sent: Monday, May 04, 2009 06:40 To: beginners@perl.org Subject: Perl code for comparing two files Hi List I am writing a perl code which will takes

RE: Perl code for comparing two files

2009-05-09 Thread Wagner, David --- Senior Programmer Analyst --- CFS
> -Original Message- > From: Anirban Adhikary [mailto:anirban.adhik...@gmail.com] > Sent: Monday, May 04, 2009 06:40 > To: beginners@perl.org > Subject: Perl code for comparing two files > > Hi List > I am writing a perl code which will takes 2 more files as > argument. Then It > will ch

RE: Re: Perl code for comparing two files

2009-05-09 Thread Wagner, David --- Senior Programmer Analyst --- CFS
> -Original Message- > From: news [mailto:n...@ger.gmane.org] On Behalf Of Richard Loveland > Sent: Friday, May 08, 2009 11:59 > To: beginners@perl.org > Subject: Re: Perl code for comparing two files > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 >

Re: Perl code for comparing two files

2009-05-08 Thread Richard Loveland
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mr. Adhikary, The following will take any number of files as arguments, in the format you described (I even tested it! :-)). It goes through each line of those files, stuffing (the relevant part of) each line in a 'seen' hash (more on that, and other,