Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Comparing two hashes

by bichonfrise74 (Vicar)
on Apr 01, 2010 at 20:45 UTC ( #832382=note: print w/replies, xml ) Need Help??

in reply to Comparing two hashes

Something like...

1. Create an outer for loop on 1st hash.
2. Create an inner for loop on the 2nd hash.
3. If keys and values of 2nd hash element is equal to the 1st hash element, then they are the same.

Replies are listed 'Best First'.
Re^2: Comparing two hashes
by moritz (Cardinal) on Apr 01, 2010 at 21:31 UTC
    Doing a linear scan over an associative array is like trying to club someone to death with a loaded Uzi -- TimToady

    Sounds like you don't need step 2. at all, since you can simply access the hash item by key.

    Perl 6 - links to (nearly) everything that is Perl 6.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://832382]
[shmem]: karlgoethebier: isn't bike riding a way of fixing lumbago?
[karlgoethebier]: shmem: scheiss technik
[karlgoethebier]: shmem: yes - i f you manage it to get on the bike. and pray if you must stop...
[shmem]: in the french alpes, at the end of a gravel road, we had a beer at a hut - and heard an enduro coming up.
[shmem]: not by the road, but from there below where you wouldn't want to walk.
[shmem]: the biker stopped the machine at the table and took off his helmet.
[shmem]: long white hair, long beard the same, then he proceeded to get off the bike

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2017-06-25 20:06 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (570 votes). Check out past polls.