As part of migration from perl 5.8 to perl 5.30, unable to get the perl nested hash in sorted fashion. Tried disabling the hash randomization features in 5.30 (set PERL_PERTURB_KEYS=0 set PERL_HASH_SEED=0x00), but still the sorting doesn't apply to multi-level /nested hash.
Apart from sorting the foreach-keys in the perl code, is there any other way, like disabling any environment variables/configuration , so as to get the values in sorted fashion wrt to perl 5.30. Tried using the deprecated Deep:Hash::Util (nested hash sort of perl5.6) also, but did not work wrt to nested/mulit-level hash.
Ex: not-working:
$VAR3 = 'Mapping_1';
$VAR4 = {
'2' => {
'ShortName' => 'Mapping_Tx2',
'FileName' => 'Appl_1.arxml',
},
'1' => {
'ShortName' => 'Mapping_Tx1',
'FileName' => 'Appl_1.arxml',
}
};
working:
$VAR3 = 'Mapping_1';
$VAR4 = {
'1' => {
'ShortName' => 'Mapping_Tx1',
'FileName' => 'Appl_1.arxml',
},
'2' => {
'ShortName' => 'Mapping_Tx2',
'FileName' => 'Appl_1.arxml',
}
};