Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: Can't figure out the realtive ordering.

by sundialsvc4 (Abbot)
on Sep 26, 2011 at 13:01 UTC ( #927853=note: print w/ replies, xml ) Need Help??

in reply to Can't figure out the realtive ordering.

The elements of a hash can be obtained in some-sorted order using the each() function, with certain limitations.   And, you will sometimes see while loops which iterate over sort keys(hashvar).

The elements of an array do not change position, unless elements are inserted or removed.   The ordering of a hash should be considered by you to be “unpredictable.”   (A hash is designed to champion rapid and consistent access-speed, and retrieval order is the price that you pay.)

Comment on Re: Can't figure out the realtive ordering.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2015-12-01 06:01 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (794 votes), past polls