Thanks for the example :-). You want either 'delete' or 'splice' Depending on whether you want the indexes to be shifted down, see perldoc -f delete and perldoc -f splice.

"Deleting an array element effectively returns that position of the array to its initial, uninitialized state. Subsequently testing for the same element with exists() will return false. Note that deleting array elements in the middle of an array will not shift the index of the ones after them down--use splice() for that. See "exists"."

http://danconia.org


Sophia Corwell wrote:
Sorry about that...

Here is an example:

Here is what my hash looks like:

%compilers = (
   system1 => ['compiler_a'],
   system2 => ['compiler_b',
'compiler_c','compiler_d'],
   system3 => ['compiler_e'],
);

Now, if I want to delete just the 'compiler_c' value
from the system2 key, can I use the delete function or
the pop function?


--- Mark Anderson <[EMAIL PROTECTED]> wrote:

Could you give us an example?

		Thanks,
			/\/\ark

-----Original Message-----
From: Sophia Corwell
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 09, 2003 3:58 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Removing a specific value from a hash whose
keys contains
multiple values


I am not sure how to delete a specific value from a
hash whose keys contains multiple values.

Could anyone advice, please?

Thanks,

Sophia

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up
now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]



__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to