in reply to Re^2: compare previous and present hash key values
in thread compare previous and present hash key values

Yes, you have to write your_sorting_routine or retrieve_key yourself. In Perl, there is no "neighbouring" hash key - hash keys have no defined order, as has been already pointed out.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^4: compare previous and present hash key values
by undisputed (Initiate) on Jan 11, 2014 at 16:05 UTC
    Does using array make my life any easier ? please see my last response to user "Rolf"