|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re: Advanced Hashby Russ (Deacon) |
| on Apr 13, 2001 at 18:54 UTC ( [id://72435]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Well, let me address a couple points first.
This isn't a hash of arrays. It is just a hash of scalars. You don't need to use @{} because join(',',@vars[0,1]) is not a list; it is just a string. You don't need to make perl interpolate $data[0] - just drop the quotes. So, since we are only comparing two hashes, you have already mentioned one technique. Check out Re: diff of two hashes. for other ways to compare hashes (show keys in first hash that are not in second, show keys in second hash that are not in first). Russ
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||