in reply to Re^3: Comparing the filepaths and versions in two hashes
in thread Comparing the filepaths and versions in two hashes

Details matter.  In

pathname_versions{$1}{$2}

you omitted the '$' sigil.