On Thu, Aug 01, 2002 at 03:42:19PM -0400, Dan Sugalski wrote: > At 5:28 PM +0200 8/1/02, Aldo Calpini wrote: > >fetching an element out of bound changes the > >length of the array. but should this really happen? > >why does perlarray.pmc act like this: > > Because that's the way Perl's arrays work. Joys of autovivification.
Only if the element fetched is being used in an lvalue context. Just reading an array element will result in undef and no change to the array internals Graham.