in reply to Re^3: Can't use string
in thread Can't use string

Yes. Sort of.

I understand that stashes are special hashes, but my point was more that the OP was making use of a facility that gives the behaviour of a hash, not the underlying mechanism.

However, I disagree with your argument. You only use what you are requiring to be exposed to you. A simple variable lookup does not necessarily imply hash use from a user perspective. There's a layer of abstraction present. This abstraction can be done independent of the hash implementation. Just look at how lexicals work.

Only when you the user takes away the layer of abstraction shielding the hash lookup does it become use from the users perspective. That is what has occurred here, therefore it is using a stash as a hash.

Replies are listed 'Best First'.
Re^5: Can't use string
by ikegami (Patriarch) on Feb 01, 2008 at 06:08 UTC

    You're talking about the intent of the programmer, of the code. Numbered rows would more likely be an array lookup then a hash lookup, which is why I suggested he actually use an array.

    What was the point of your message? It was already clear that I believed the OP's was using an array/hash (your definition). Why else would I have suggested that he use an array/hash (the type).