in reply to Re^6: Handling Hash Comparison
in thread Handling Hash Comparison

Understood. In that case, once you follow my above suggestion for putting relative paths into the hash keys, then your cp statement simply becomes this:
"cp '$sdir/$key' '$fdir/$key'"