in reply to doubts about Data::Dumper output

Hash keys are not ordered. It is irrelevant which one will be defined first. In the end, they both point to the same code reference.

BTW, you can simplify the assignment by dropping the cast and dereference:

$dispatch{a} = $dispatch{original_a};
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ