Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^6: Hash order randomization is coming, are you ready?

by BrowserUk (Pope)
on Dec 02, 2012 at 17:41 UTC ( #1006737=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $h1{ $_ } = 1 for         'a'..'z';;
    $h2{ $_ } = 1 for reverse 'a'..'z';;
    ...
    
    w 1 r 1 a 1 x 1 d 1 j 1 y 1 u 1 k 1 h 1 g 1 f 1 t 1 i 1 e 1 n 1 v 1 m 
    +1 s 1 l 1 c 1 p 1 q 1 b 1 z 1 o 1
    w 1 a 1 r 1 d 1 x 1 j 1 y 1 u 1 h 1 k 1 g 1 f 1 i 1 t 1 e 1 n 1 v 1 m 
    +1 s 1 l 1 c 1 p 1 b 1 q 1 z 1 o 1
    
  2. or download this
    @h1{ 'a'..'z', 'A'..'Z' } = (1)x52;;
    delete @h1{ 'A'..'Z' };;
    ...
    print %h1; print %h2;;
    a 1 d 1 j 1 y 1 u 1 k 1 g 1 t 1 e 1 v 1 s 1 c 1 q 1 b 1 z 1 w 1 r 1 x 
    +1 h 1 f 1 i 1 n 1 m 1 l 1 p 1 o 1
    w 1 r 1 a 1 x 1 d 1 j 1 y 1 u 1 k 1 h 1 g 1 f 1 t 1 i 1 e 1 n 1 v 1 m 
    +1 s 1 l 1 c 1 p 1 q 1 b 1 z 1 o 1
    
  3. or download this
    @h{ 'a'..'z', 'A'..'Z' } = (1)x52;;
    delete @h{ 'A'..'Z' };;
    ...
    print %h; print %h2;;
    a 1 d 1 j 1 y 1 u 1 k 1 g 1 t 1 e 1 v 1 s 1 c 1 q 1 b 1 z 1 w 1 r 1 x 
    +1 h 1 f 1 i 1 n 1 m 1 l 1 p 1 o 1
    w 1 r 1 a 1 x 1 d 1 j 1 y 1 u 1 h 1 k 1 g 1 f 1 i 1 t 1 e 1 n 1 m 1 v 
    +1 s 1 l 1 p 1 c 1 q 1 b 1 z 1 o 1
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2014-08-22 04:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (147 votes), past polls