Am I right in thinking that the only two ways to simulate associative arrays
as they exist in languages such as Perl and Python are by

1. Making an object and using it's fields for what would be the indexes
2. Using the select keyword on a block, like so:

data: ["key1" value1 "key2" value2 "key3" value3]
print select data "key1"

?

Is there any equivalent syntax to the Perl: data{"key1"}? Are there any
plans to make something like that?

Also, how can I use nested associative arrays?

Is this right?

data: ["key1" value1 "key2" value2 "key3" ["key1a" value1a "key2a" value2a
"key3a" value3a]]
print select select data "key3" "key1a"

Thanks.

Keith

Reply via email to