in reply to How to check that keys in two hashes match and get the corresponding values

So essentially using the above small hash examples this is the output I am looking for:

@dev bigstorderv_mpt nydevnfs_derv /vol/derv /bb/bigstor/derv @dev bigstormtg_mpt njdevnfs_mtge /vol/mtge /bb/bigstor/mtgmodel @dev bigstormtg_mpt nydevnfs_mtge /vol/mtge /bb/bigstor/mtgmodel @dev build10_mpt rnap7751-s /vol/sunbbsource_c /bb/source @dev build10_mpt nydevnfs_sunbbsource /vol/sunbbsource /bb/source

I am getting very similar output except I cant seem to get the value of the %volume_device to match the value set for the %filer_device so instead of getting the output above I get some lines are written twice as my sub routine doesn't know which volume_device value to map to the filer_device value so it prints the lines twice with the value for the volume device different on each line Please can you help me with what I am doing wrong here?

  • Comment on Re: How to check that keys in two hashes match and get the corresponding values
  • Download Code