http://bugzilla.spamassassin.org/show_bug.cgi?id=3852
------- Additional Comments From [EMAIL PROTECTED] 2005-03-21 18:55 ------- Subject: Re: better way to have user configs On Mon, Mar 21, 2005 at 06:46:27PM -0800, [EMAIL PROTECTED] wrote: > > @sys = ( 1, 2, 3, 4, 5 ); > > as far as I know, $sys[2] = undef; does the trick, right? > then if (defined $sys[2]) will return false to indicate deletion, > but "foreach" and scalar @sys will still indicate the right number > of elements. Well, @sys is the system array which we don't want to change. So we could do: $user[2] = undef, but that makes $user[0..1] = undef as well, so now it looks like 3 things are deleted. The only way to make the undef thing work is to copy over the original array and then do the undef, but of course then just splicing out the value would be better in that situation. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
