comparing hashes

2007-01-13 Thread xavier mas
hello list, I am trying to find if an element in one primary file (transformed to array) is included in two other different secondary files (transformed to arrays, too); the result is going to be printed as 1 or 0: ... #creating arrays from its text files @img_array=; @dict_array=; @in_array=;

Re: comparing hashes

2007-01-13 Thread Xavier Noria
On Jan 13, 2007, at 6:29 PM, xavier mas wrote: hello list, I am trying to find if an element in one primary file (transformed to array) is included in two other different secondary files (transformed to arrays, too); the result is going to be printed as 1 or 0: According to the code that

Re: comparing hashes

2007-01-13 Thread xavier mas
A Dissabte 13 Gener 2007 18:53, Xavier Noria va escriure: > On Jan 13, 2007, at 6:29 PM, xavier mas wrote: > > hello list, > > > > I am trying to find if an element in one primary file (transformed > > to array) > > is included in two other different secondary files (transformed to > > arrays, > >

Re: comparing hashes

2007-01-13 Thread John W. Krahn
xavier mas wrote: > > Here's an example: > in (file, array and hash) contains: "woman, lion, ball" > img (file, array and hash) contains: "ball, dog, cat, lion". > dict (file, array and hash) contains: "house, man, woman, kid, kitchen, lion" > > Comparing in with dict ans img, I'll expect as a re

Re: comparing hashes

2007-01-13 Thread Xavier Noria
On Jan 13, 2007, at 7:43 PM, xavier mas wrote: Here's an example: in (file, array and hash) contains: "woman, lion, ball" img (file, array and hash) contains: "ball, dog, cat, lion". dict (file, array and hash) contains: "house, man, woman, kid, kitchen, lion" Comparing in with dict ans img

Re: comparing hashes

2007-01-13 Thread xavier mas
A Dissabte 13 Gener 2007 20:38, John W. Krahn va escriure: > xavier mas wrote: > > Here's an example: > > in (file, array and hash) contains: "woman, lion, ball" > > img (file, array and hash) contains: "ball, dog, cat, lion". > > dict (file, array and hash) contains: "house, man, woman, kid, kitch

Re: comparing hashes

2007-01-13 Thread Bill Jones
On 1/13/07, xavier mas <[EMAIL PROTECTED]> wrote: Yes, this is the code I use, but still doesn't work to me and I can't find the cause. Have you looked the results using Data::Dumper? Maybe the results aren't as expected? -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ h

Re: comparing hashes

2007-01-14 Thread xavier mas
A Diumenge 14 Gener 2007 06:39, Bill Jones va escriure: > On 1/13/07, xavier mas <[EMAIL PROTECTED]> wrote: > > Yes, this is the code I use, but still doesn't work to me and I can't > > find the cause. > > Have you looked the results using Data::Dumper? Maybe the results > aren't as expected? > >

Re: comparing hashes

2007-01-14 Thread Xavier Noria
Xavier, this is being inefficient. If you don't send a minimal example together with data example that reproduces the issue this is a come and go of second-guesses, which is a waste of time. Please send them so we can go straight to understand what happens. -- fxn -- To unsubscribe, e-m

Re: comparing hashes

2007-01-14 Thread xavier mas
A Diumenge 14 Gener 2007 11:20, Xavier Noria va escriure: > Xavier, this is being inefficient. > > If you don't send a minimal example together with data example that > reproduces the issue this is a come and go of second-guesses, which > is a waste of time. Please send them so we can go straight t

Re: comparing hashes

2007-01-14 Thread fxn
> A Diumenge 14 Gener 2007 11:20, Xavier Noria va escriure: >> Xavier, this is being inefficient. >> >> If you don't send a minimal example together with data example that >> reproduces the issue this is a come and go of second-guesses, which >> is a waste of time. Please send them so we can go str

Re: comparing hashes

2007-01-14 Thread Mumia W.
On 01/13/2007 12:43 PM, xavier mas wrote: A Dissabte 13 Gener 2007 18:53, Xavier Noria va escriure: On Jan 13, 2007, at 6:29 PM, xavier mas wrote: hello list, I am trying to find if an element in one primary file (transformed to array) is included in two other different secondary files (transf

Re: comparing hashes

2007-01-15 Thread Rob Dixon
xavier mas wrote: A Dissabte 13 Gener 2007 18:53, Xavier Noria va escriure: On Jan 13, 2007, at 6:29 PM, xavier mas wrote: hello list, I am trying to find if an element in one primary file (transformed to array) is included in two other different secondary files (transformed to arrays, too); t

Comparing Hashes with different keys. How ?

2003-12-16 Thread John Hennessy
Hi, I have two different hashes built from separate data and need to find the common then differing items. $HoA1{$custnum} = [ $uid, $firstname, $lastname ]; $HoA2{$uid} = [ $custnum, $firstname, $lastname ]; I have looked at examples for "Finding Common or Different Keys in Two Hashes" but the

Re: [SPAM DETECT] Re: comparing hashes

2007-01-14 Thread xavier mas
A Diumenge 14 Gener 2007 12:33, [EMAIL PROTECTED] va escriure: > > A Diumenge 14 Gener 2007 11:20, Xavier Noria va escriure: > >> Xavier, this is being inefficient. > >> > >> If you don't send a minimal example together with data example that > >> reproduces the issue this is a come and go of secon

Re: [SPAM DETECT] Re: comparing hashes

2007-01-14 Thread fxn
> A Diumenge 14 Gener 2007 12:33, [EMAIL PROTECTED] va escriure: > That's the program in full and a sample of the files (same as before): > > dict.txt: house, man, woman, kid, kitchen > img.txt: ball, dog, cat, lion > in.txt: woman, lion, dog I'll stop here, please if any other regular wants to t

Re: Comparing Hashes with different keys. How ?

2003-12-16 Thread James Edward Gray II
On Dec 16, 2003, at 9:36 AM, John Hennessy wrote: Hi, I have two different hashes built from separate data and need to find the common then differing items. $HoA1{$custnum} = [ $uid, $firstname, $lastname ]; $HoA2{$uid} = [ $custnum, $firstname, $lastname ]; I have looked at examples for "Findin

Re: Comparing Hashes with different keys. How ?

2003-12-16 Thread Rob Dixon
John Hennessy wrote: > > Hi, I have two different hashes built from separate data and need to > find the common then differing items. > > $HoA1{$custnum} = [ $uid, $firstname, $lastname ]; > $HoA2{$uid} = [ $custnum, $firstname, $lastname ]; > > I have looked at examples for "Finding Common or Diff

Re: Comparing Hashes with different keys. How ?

2003-12-16 Thread Jenda Krynicky
Date sent: Tue, 16 Dec 2003 23:36:16 +0800 From: John Hennessy <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Comparing Hashes with different keys. How ? > Hi, I have two different hashes built from separate data an

Re: Comparing Hashes with different keys. How ?

2003-12-16 Thread R. Joseph Newton
John Hennessy wrote: > Hi, I have two different hashes built from separate data and need to > find the common then differing items. > > $HoA1{$custnum} = [ $uid, $firstname, $lastname ]; > $HoA2{$uid} = [ $custnum, $firstname, $lastname ]; > > I have looked at examples for "Finding Common or Diffe