POV-Ray : Newsgroups : povray.unofficial.patches : My personal wishlist : Re: My personal wishlist Server Time
2 Sep 2024 20:17:03 EDT (-0400)
  Re: My personal wishlist  
From: Ron Parker
Date: 29 Feb 2000 08:00:16
Message: <38bbc2e0$1@news.povray.org>
On 29 Feb 2000 07:38:29 -0500, Nieminen Juha wrote:
>Ron Parker <ron### [at] povrayorg> 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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.