At 9:04 PM +0100 8/1/02, Graham Barr wrote: >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
Good point. Read shouldn't extend, write should. -- Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk