At 00:08 -0500 2001.11.20, Ronald J Kimball wrote: >On Mon, Nov 19, 2001 at 05:09:45PM -0700, Keary Suska wrote: >> IIRC, technically, the for() would take more time but only noticeable with >> exceptionally large arrays. I seem to recall something about for() copying >> an array before iterating. > >I'm not sure what you mean about for() copying an array before iterating. >That is certainly not the case.
I think maybe there's confusion about this case: for (0 .. 1000000) { ... } This would not *copy* anything, but it does (used to) create a list of 1 million (+1) elements. This has been optimized in perl 5.6 and later, IIRC, so such a large list is no longer created. -- Chris Nandor [EMAIL PROTECTED] http://pudge.net/ Open Source Development Network [EMAIL PROTECTED] http://osdn.com/