On Feb 12, 2016 8:28 PM, "Kent Fredric" <kentfred...@gmail.com> wrote:
>
> On 13 February 2016 at 07:39, timothy adigun <2teezp...@gmail.com> wrote:
> > And hashes keys/values can't be sorted? Just saying.. :)
>
>
> In my other message where I give an analogy to a "Folder" or
> "Directory" in a file system.
In your analogy, if hashes are like folder, keys and values are like
what? Name of folders. If yes, can those be sorted? If yes, they you
have just made my point.. :)
>
> Can you sort a folder? ... not really. They don't really have an
> "order", you can traverse them in an order, but there's lots of
> different ways of doing that.
>
> The folder itself is, under the hood, sorted somewhat randomly most of
> the time, and your user interface might just sort them before you get
> what comes out of it ;).
>
> You can demonstrate this by asking somebody to change the order of 2
> specific files in a folder without changing the name, and then watch
> as they fail :P
>
>
>
> --
> Kent
>
> KENTNL - https://metacpan.org/author/KENTNL