Shawn H Corey <shawnhco...@gmail.com> writes:

> Harry Putnam wrote:
>> But, is there an easier way?
>
> Invert both hashes and find the keys in both inverses.

[...]

Thanks for the nice working script... Lots to learn there.

But not sure how to get at the information I asked about with it. 
Maybe because there was a type in my post.

Harry wrote:
> The idea is to determine what is one hash but not the other in terms
                                  ^
                                  in
> of values ... as above.


Maybe once we have what is in them both, as your script does.
Then maybe delete those elements from both h1 and h2, leaving what is
in one but not the other?

But no, that won't work completely because some of the names are
removed in the inversion process.  So I guess I'm still not quite
seeing how to use this to get at what is in one, and not the other.

But it is a lot nicer way to find what they have in common.


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to