On 13 February 2016 at 10:08, Kent Fredric wrote:
>
> All you're doing is sorting the *view* of it. Not the data itself.
If you want a demonstration of this fact, on a Linux filesystem, poke
around with 'find'. Or if you've got Path::Iterator::Rule installed:
perl -MPIR -E' $it = PIR->new->ite
On 13 February 2016 at 08:38, timothy adigun <2teezp...@gmail.com> wrote:
> 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.. :)
Keys are files.
Values are file contents.
B
On Fri, February 12, 2016 12:37 pm, Christin Deville wrote:
> I have been lurking for a while but I want to chime in and say thanks for
> that piece of advice. I've been trying to sort out in my head when to use
> a hash or an array and this all helps!
>
>
in real world code you should be using ha
On Feb 12, 2016 8:28 PM, "Kent Fredric" 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 analo
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.
Can you sort a folder? ... not really. They don't really have an
"order"
On 10 February 2016 at 03:46, James Kerwin wrote:
> (I'm a bit wary of hashes because they're weird).
If you want a nice way to reason about hashes when you're really new,
there's something that you probably already understand you can borrow
understanding from:
Folders.
A hash is like a folder
On Feb 12, 2016 6:22 PM, "Shawn H Corey" wrote:
>
> On Fri, 12 Feb 2016 12:08:07 -0500
> Uri Guttman wrote:
>
> > hashes are very easy to learn. and once you get the hang of them you
> > will wonder why you waited so long.
>
> If keeping the data ordering is important,
And hashes keys/values can'
I have been lurking for a while but I want to chime in and say thanks for that
piece of advice. I've been trying to sort out in my head when to use a hash or
an array and this all helps!
-Christin
-Original Message-
From: Shawn H Corey [mailto:shawnhco...@gmail.com]
Sent: Friday, Febru
On 02/12/2016 04:33 AM, James Kerwin wrote:
Thank you all for your help; all suggestions were welcome and helpful.
I didn't give the full details but Jim's solution did what I wanted
the best and after reading around I think I get it. I've sat here
trying to "break" it for the past half an hou
On Fri, 12 Feb 2016 12:08:07 -0500
Uri Guttman wrote:
> hashes are very easy to learn. and once you get the hang of them you
> will wonder why you waited so long.
If keeping the data ordering is important, use an array. Otherwise, use
a hash. :)
--
Don't stop where the ink does.
Shaw
Thank you all for your help; all suggestions were welcome and helpful.
I didn't give the full details but Jim's solution did what I wanted the
best and after reading around I think I get it. I've sat here trying to
"break" it for the past half an hour and so far so good.
I solemnly swear to prope
11 matches
Mail list logo