Michael,
Thanks a lot.
Ahmed
- Original Message -
From: Michael Fowler
To: Ahmed Moustafa Ibrahim Ahmed
Cc: [EMAIL PROTECTED]
Sent: Tuesday, November 20, 2001 2:14 PM
Subject: Re: How to delete hash element
On Tue, Nov 20, 2001 at 12:41:03PM -0800, Ahmed Moustafa
On Tue, Nov 20, 2001 at 12:41:03PM -0800, Ahmed Moustafa Ibrahim Ahmed wrote:
> If I know the key and offset of the element, how can I delete that hash
> element, please?
As far as I understand the followup clarification, what you really want to
do is delete an element in an array, which just hap
key ==> @$val\n");
}
delete(${$hash{'name2'}}[0]);
while(my($key,$val) = each %hash){
print ("$key ==> @$val\n");
}
--Rex
> -Original Message-
> From: Ahmed Moustafa Ibrahim Ahmed [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 20,
12:50 PM
Subject: Re: How to delete hash element
Tuesday, November 20, 2001, 8:41:03 PM, Ahmed Moustafa Ibrahim Ahmed wrote:
AMIA> If I know the key and offset of the element, how can I delete that hash
AMIA> element, please?
you can delete a hash element like:
delete $ha
Rapuano [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 20, 2001 3:57 PM
To: Daniel Gardner; Ahmed Moustafa Ibrahim Ahmed
Cc: [EMAIL PROTECTED]
Subject: RE: How to delete hash element
is it possible to delete a "key" along with the element??
-Original Message-
From: Dani
EMAIL PROTECTED]
> Subject: RE: How to delete hash element
>
>
> is it possible to delete a "key" along with the element??
>
>
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
is it possible to delete a "key" along with the element??
-Original Message-
From: Daniel Gardner [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 20, 2001 3:50 PM
To: Ahmed Moustafa Ibrahim Ahmed
Cc: [EMAIL PROTECTED]
Subject: Re: How to delete hash element
Tuesday, N
Say you've got a hash called %myhash and it's got a key called "foo".
delete $myhash{foo};
will get rid of the "foo" key.
Chris Spurgeon
Senior Design Technologist
[EMAIL PROTECTED]
ELECTRONIC INK
One South Broad Street
19th Floor
Philadelphia, PA 19107
www.el
Tuesday, November 20, 2001, 8:41:03 PM, Ahmed Moustafa Ibrahim Ahmed wrote:
AMIA> If I know the key and offset of the element, how can I delete that hash
AMIA> element, please?
you can delete a hash element like:
delete $hash{ the_key };
but i'm not sure what you mean by "the offset of the e
On Tue, 20 Nov 2001, Ahmed Moustafa Ibrahim Ahmed wrote:
> If I know the key and offset of the element, how can I delete that hash
> element, please?
perldoc -f delete
-- Brett
http://www.chapelperilous.net/
-
10 matches
Mail list logo