|
![](/i/fill.gif) |
On 28 Feb 2000 03:02:18 -0500, Nieminen Juha wrote:
>Ron Parker <ron### [at] povray org> wrote:
>: I want an array that acts like a C++ STL map, too.
>
> I think it's technically called "associative array".
Actually, I knew that, since I actually use them in Perl rather than
in C++. I was just trying for the parallelism with the original comment. :)
Perl doesn't have what you'd call "iterators" per se. To iterate over an
associative array in Perl, you do:
for $index ( keys( %assoc_array ) ) {
do_stuff_with( $assoc_array{$index} )
}
--
These are my opinions. I do NOT speak for the POV-Team.
The superpatch: http://www2.fwi.com/~parkerr/superpatch/
My other stuff: http://www2.fwi.com/~parkerr/traces.html
Post a reply to this message
|
![](/i/fill.gif) |