|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Re: Compare Hashes and Arraysby Skeeve (Vicar) |
| on Dec 16, 2009 at 13:08 UTC ( #813012=note: print w/ replies, xml ) | Need Help?? |
|
Provided that either the array's values are unique or provided that you don't care for the number of occurences, you could use the array's values as hash keys. You can either compare the hashes, as you already are able to, or you can try this:
s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{% +.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||