hash comparison ideas

2007-07-03 Thread [EMAIL PROTECTED]
Hi I have a script which contains 2 hashes of file names as the keys and md5 sums as the values. I am looking for ideas on fast and efficient ways to compare the 2 hashes in the manner of the pseudo code below -- %base_hash %new_hash for keys in %new_hash if key in %new_hash exists in %base_ha

Re: hash comparison ideas

2007-07-03 Thread Jeff Pang
A hash is an array actually in perl.So you may use Array::Diff module on CPAN: http://search.cpan.org/~typester/Array-Diff-0.04/lib/Array/Diff.pm 2007/7/4, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: Hi I have a script which contains 2 hashes of file names as the keys and md5 sums as the values. I

Re: hash comparison ideas

2007-07-03 Thread John W. Krahn
[EMAIL PROTECTED] wrote: Hi Hello, I have a script which contains 2 hashes of file names as the keys and md5 sums as the values. I am looking for ideas on fast and efficient ways to compare the 2 hashes in the manner of the pseudo code below Can you fill us in on the big picture? Perhaps

Re: hash comparison ideas

2007-07-04 Thread Jenda Krynicky
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > Hi > I have a script which contains 2 hashes of file names as the keys and > md5 sums as the values. I am looking for ideas on fast and efficient > ways to compare the 2 hashes in the manner of the pseudo code below > > -- > %base_hash > %new_hash >

Re: hash comparison ideas

2007-07-04 Thread Jenda Krynicky
From: "Jeff Pang" <[EMAIL PROTECTED]> > A hash is an array actually in perl. > So you may use Array::Diff module on CPAN: > http://search.cpan.org/~typester/Array-Diff-0.04/lib/Array/Diff.pm Beg tour pardon? Are we talking about the silly name "associative array" sometimes used form hashes? Or ar

Re: hash comparison ideas

2007-07-04 Thread [EMAIL PROTECTED]
On Jul 4, 2:05 am, [EMAIL PROTECTED] (John W. Krahn) wrote: > > > I have a script which contains 2 hashes of file names as the keys and > > md5 sums as the values. I am looking for ideas on fast and efficient > > ways to compare the 2 hashes in the manner of the pseudo code below > > Can you fill