in reply to Creating lists using a hash with the same key/values
The only thing is your example of
is more commonly coded as%SampleHash ( 'whatever' => 'whatever', 'whoever' => 'whoever', )
...simply because if you ain't gonna be using the values of the hash, there's no reason to make the value any longer than absolutely necessary. Making the value a "1" does the trick, and it doesn't waste memory. Of course, you're probably not likely to have a hash of values that's so big for the memory cost to matter much, but hey, waste not want not. :-)%SampleHash ( 'whatever' => 1, 'whoever' => 1, )
Gary Blackburn
Trained Killer
|
|---|