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 = ( '' => 'nfs,1', '' => 'cifs,0', '' => 'afp,1', '' => 'nfs,0', '' => '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?