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