http://qs1969.pair.com?node_id=212258

hotshot has asked for the wisdom of the Perl Monks concerning the following question:

hello dear monks!

I have two hashes in the following format:
my %hash = ( '1.1.1.1' => 'nfs,1', '4.4.4.4' => 'cifs,0', '10.0.4.2' => 'afp,1', '3.3.3.3' => 'nfs,0', '5.5.5.5' => 'afp,0', );
As you can see, the key is an IP address and the value is a file protocol name and an index.
the first hash is old configuration, and the second hash will be new configuration. I need to restart the protocol(s) that one or more of their IP addresses were changed (including an index change), therefore I need some kind of diff function that will return me the changed protocols, for example afp and I'll know to restart it.
Anyone with an idea?

Hotshot