More of a coding and Object design comment, but rather than maintaining multiple hashes, or arrays, why not use the HoH approach, like this :
%RESULTS = (
pathFileA => {
title => $title,
desc => $descrip,
},
pathFileB => {
title => $title,
desc => $descrip,
},
);
From there, the sorting is left as an excersise for the reader
(always wanted to say that)
i had a memory leak once, and it ruined my favorite shirt.