Re: comparing some but not all fields in lists

2008-03-16 Thread David Newman
Jay Savage wrote: On Mon, Mar 3, 2008 at 5:32 PM, David Newman <[EMAIL PROTECTED]> wrote: Greetings. I'm looking to compare two contact lists in csv format, and then print out "here are the records in in Llist only, in Rlist only, and what's in common." I should compare only 3 of the 82 fiel

Re: comparing some but not all fields in lists

2008-03-04 Thread Jay Savage
On Mon, Mar 3, 2008 at 5:32 PM, David Newman <[EMAIL PROTECTED]> wrote: > Greetings. I'm looking to compare two contact lists in csv format, and > then print out "here are the records in in Llist only, in Rlist only, > and what's in common." > > I should compare only 3 of the 82 fields in each l

Re: comparing some but not all fields in lists

2008-03-04 Thread Gunnar Hjalmarsson
(Randal L. Schwartz) wrote: "Gunnar" == Gunnar Hjalmarsson <[EMAIL PROTECTED]> writes: Gunnar> my ($comp) = /([^,]*,[^,]*,[^,]*)/; Gunnar> $Llist{$comp} = $_; These lines scare me. What happens if the regex fails? And if you never expect it to fail, at least add a "die", to p

Re: comparing some but not all fields in lists

2008-03-03 Thread John W. Krahn
David Newman wrote: Greetings. I'm looking to compare two contact lists in csv format, and then print out "here are the records in in Llist only, in Rlist only, and what's in common." I should compare only 3 of the 82 fields in each list. There are differences in some of the other fields that

Re: comparing some but not all fields in lists

2008-03-03 Thread Randal L. Schwartz
> "Gunnar" == Gunnar Hjalmarsson <[EMAIL PROTECTED]> writes: Gunnar> my ($comp) = /([^,]*,[^,]*,[^,]*)/; Gunnar> $Llist{$comp} = $_; These lines scare me. What happens if the regex fails? And if you never expect it to fail, at least add a "die", to prove me wrong. :) -- Ra

Re: comparing some but not all fields in lists

2008-03-03 Thread Gunnar Hjalmarsson
David Newman wrote: Greetings. I'm looking to compare two contact lists in csv format, and then print out "here are the records in in Llist only, in Rlist only, and what's in common." I should compare only 3 of the 82 fields in each list. There are differences in some of the other fields that

comparing some but not all fields in lists

2008-03-03 Thread David Newman
Greetings. I'm looking to compare two contact lists in csv format, and then print out "here are the records in in Llist only, in Rlist only, and what's in common." I should compare only 3 of the 82 fields in each list. There are differences in some of the other fields that I should ignore. I