http://bugzilla.spamassassin.org/show_bug.cgi?id=3852





------- Additional Comments From [EMAIL PROTECTED]  2005-03-21 18:46 -------
Subject: Re:  better way to have user configs 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


[EMAIL PROTECTED] writes:
> For hashes, sure (assuming undef isn't a valid value).  How about
> an array though?
> 
> @sys = ( 1, 2, 3, 4, 5 );
> 
> Now I want to delete $sys[2].  How can I specify that in a different array?
> The same undef trick will not work here for various reasons.

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.

- --j.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Exmh CVS

iD8DBQFCP4a8MJF5cimLx9ARAqM8AJ9uSsznd/pBL9WqGP1vs3Or4fGSQQCgn7ob
PGTOqgZTAdTZ0kBg22XvcHw=
=XsNw
-----END PGP SIGNATURE-----





------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to