in reply to Re^2: setting PERL_PERTURB_KEYS & PERL_HASH_SEED in a perl file
in thread setting PERL_PERTURB_KEYS & PERL_HASH_SEED in a perl file
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: setting PERL_PERTURB_KEYS & PERL_HASH_SEED in a perl file
by haukex (Archbishop) on Jul 18, 2016 at 12:57 UTC | |
by gravid (Novice) on Jul 18, 2016 at 13:12 UTC | |
by tye (Sage) on Jul 18, 2016 at 13:20 UTC | |
by haukex (Archbishop) on Jul 18, 2016 at 13:21 UTC | |
by gravid (Novice) on Jul 18, 2016 at 13:31 UTC |