Re: Arrays: Default Values

2003-01-29 Thread Juergen Boemmels
Jonathan Scott Duff <[EMAIL PROTECTED]> writes: > On Wed, Jan 29, 2003 at 08:49:42PM +0100, Juergen Boemmels wrote: > > Solution 3: The autoset sets the value to the default value. > > > > my Int @a is default(5); > > > > @a[3] = 3;

Re: Arrays: Default Values

2003-01-29 Thread Juergen Boemmels
# doesn't exist, so returns 5 @a[2] = undef; # set to undef, so returns undef @a[5] = @a.default # if you really want to reset something to # default. BTW there are now 6 items in # the array. returns 5 @