Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^6: setting PERL_PERTURB_KEYS & PERL_HASH_SEED in a perl file (sort)

by tye (Sage)
on Jul 18, 2016 at 13:20 UTC ( [id://1167965]=note: print w/replies, xml ) Need Help??


in reply to Re^5: setting PERL_PERTURB_KEYS & PERL_HASH_SEED in a perl file
in thread setting PERL_PERTURB_KEYS & PERL_HASH_SEED in a perl file

sort { $hash{$a} <=> $hash{$b} || $a cmp $b }
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

So you thought that the Perl code in a BEGIN block would be run by the perl interpreter before the perl interpreter was initialized? Surely it is not hard to see why that is not the case.

- tye        

  • Comment on Re^6: setting PERL_PERTURB_KEYS & PERL_HASH_SEED in a perl file (sort)
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1167965]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-26 05:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found