definition of a "straight hash"?

J

John Davis

I was looking at some of the posts and was a little confused on that
term. What exactly is a straight hash? I've tried doing a search for
it but came up empty. Is that just an ordinary associative array or is
something special with references, etc...

Thanks!
John
 
C

ctcgag

I was looking at some of the posts and was a little confused on that
term. What exactly is a straight hash? I've tried doing a search for
it but came up empty. Is that just an ordinary associative array or is
something special with references, etc...

Well, depending on context, it could be a hash that isn't tied to anything,
or a hash that doesn't contain references, or a hash that doesn't have any
references to it (other than perls behind the scenes ones), or a hash that
isn't a de facto part of some more intricate data structure.

It doesn't have any meaning apart from the more complex thing it is being
compared to.


Xho
 
G

gnari

John Davis said:
I was looking at some of the posts and was a little confused on that
term. What exactly is a straight hash? I've tried doing a search for
it but came up empty. Is that just an ordinary associative array or is
something special with references, etc...

I googled for the term in clpm and came up with 3 references.

2 of them were discussing the use of exists() as opposed to
a straight hash expression/access. here 'straight' applies
to 'expression' or 'access', not to 'hash'. in other words:
straight (hash expression), not (straight hash) expression.

the third post was discussing refhash versus straight hash,
i.e.: $foo{bar} vs $foo->{bar}

i do not think 'straight hash' has any particular meaning out
of context.

gnari
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top