Ronald J Kimball wrote: > On Tue, Jan 18, 2000 at 12:35:25PM -0500, John Porter wrote: > > * Jeff Pinyan (jeffp@crusoe.net) [000118 11:54]: > > > > > > Sometimes, I use something like: > > > > > > for ($i = 0; local $_ = $array[$i], $i < @array; $i++) { > > > ... > > > } > > > > I'm not sure, but I think that may trigger the array > > extension mechanism, since sometimes you're accessing > > $array[ $#array + 1 ]. > > Taking a reference to an unallocated element of an array will extend the > array. > > Simply using an unallocated element as an rvalue will not affect the > contents of the array, however. > > print scalar(@array), "\n"; Um, I'm talking about the internally allocated space for the array, not the publicly reported size. You know, the mechanism that allows arrays to be dynamically sized in perl. -- John Porter "There are people who have fun studying the C++ spec for literally seconds on end, I'm sure..." John Vlissides ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe