|
![](/i/fill.gif) |
On 29 Feb 2000 07:38:29 -0500, Nieminen Juha wrote:
>Ron Parker <ron### [at] povray org> wrote:
>: 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} )
>: }
>
> I think this is slower than using iterators.
Yes, it is. Unfortunately, it's the only way in Perl. TMTOWTDI, indeed.
--
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) |