in reply to sorting array of hashes

You can do it with a custom sort sub:

@array = sort { $a->{'path'} cmp $b->{'path'} } @array;