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=IMATGES; @dict_array=DICT;

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

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, too); the

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 result (all

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, kitchen, lion

Array Referrences

2007-01-13 Thread Mathew Snyder
Quick question about references to arrays that I need clarified? If I have 'my $aryRef = [EMAIL PROTECTED]' can do 'push $aryRef, $aValue'? Does this place the value of $aValue directly into @array or do I need to figure out another way to do that? I'm guessing this is exactly what array

Re: Array Referrences

2007-01-13 Thread Jeff Pang
If I have 'my $aryRef = [EMAIL PROTECTED]' can do 'push $aryRef, $aValue'? Does this place the value of $aValue directly into @array or do I need to figure out another way to do that? You can't do 'push' like this way since $aryRef is a scalar but 'push' expect a list as its first argument.

Re: Array Referrences

2007-01-13 Thread Mathew Snyder
Jeff Pang wrote: If I have 'my $aryRef = [EMAIL PROTECTED]' can do 'push $aryRef, $aValue'? Does this place the value of $aValue directly into @array or do I need to figure out another way to do that? You can't do 'push' like this way since $aryRef is a scalar but 'push' expect a list

Re: Array Referrences

2007-01-13 Thread John W. Krahn
Jeff Pang wrote: If I have 'my $aryRef = [EMAIL PROTECTED]' can do 'push $aryRef, $aValue'? Does this place the value of $aValue directly into @array or do I need to figure out another way to do that? You can't do 'push' like this way since $aryRef is a scalar but 'push' expect a list

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/

Re: Help with URI encode

2007-01-13 Thread Bill Jones
On 1/4/07, Jm lists [EMAIL PROTECTED] wrote: what's the encode format for %BD%F1%C8%D5%C5%C5%D0%D0 ?Thank you. It's another way for spammers to hide URLs, etc. Try this: use strict; my $val = %BD%F1%C8%D5%C5%C5%D0%D0; print Looking at $val ; $val =~ s/%([0-9a-f][0-9a-f])/chr(hex($1))/ieg;