Creates an ordered Sleep hash. All keys are stored in insertion order.
key => value - a key/value pair to populate the hash with.
... - any number of key/value pairs may be specified.
An ordered hash
%random = %(a => "apple", b => "boy", c => "cat", d => "dog"); println("Random: " . %random); %ordered = ohash(a => "apple", b => "boy", c => "cat", d => "dog"); println("Ordered: " . %ordered);
Random: %(d => 'dog', a => 'apple', c => 'cat', b => 'boy') Ordered: %(a => 'apple', b => 'boy', c => 'cat', d => 'dog')