Do you know where your variables are? | |
PerlMonks |
Re^3: setting PERL_PERTURB_KEYS & PERL_HASH_SEED in a perl fileby gravid (Novice) |
on Jul 18, 2016 at 12:51 UTC ( [id://1167959]=note: print w/replies, xml ) | Need Help?? |
Thx Everyone. The solution you gave indeed work. exec( $^X, $0, @ARGV ); I was sure that whatever written inside a BEGIN statement is hapannig before everything else, so I'm not sure why my first attempt did't wok Isn't there a way to solve that without recalling the script again? By the way, I don't rely on hash to be sorted, but in this case I did my sort base on the values and not the keys. Since the values might be equal I got inconsistent printing while in earlier perl version the printing was consistent. Thx Guy
In Section
Seekers of Perl Wisdom
|
|