On Fri, 9 Nov 2001, HANSON wrote:
> I am traversing a multidimensional hash searching for a value and
> trying to delete it. However, I am ending up deleting the wrong one.
> The value I'm looking for is /name/. There is also a value of /name1/
> in the hash. When I use =~/name/ it deletes the name1 value somehow.
> Is there a way I can be very specific and keep it from deleting the
> name1 value?
Instead of using a regular expression, find an exact equality. In other
words, try
$hash{'key'} eq 'name';
-- Brett
http://www.chapelperilous.net/
------------------------------------------------------------------------
"Don't discount flying pigs before you have good air defense."
-- [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]