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; # there are now 4 items in the array > @a[2]; # was autoset 5 so returns 5 > @a[4]; # doesn't exist, so returns 5 > > @a[2] = undef; # set to undef, so returns undef
Can someone give me a realish world example of when you would want an array that can store both undefined values and default values and those values are different? -Scott -- Jonathan Scott Duff [EMAIL PROTECTED]