Re: How to delete hash element

2001-11-20 Thread Brett W. McCoy
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/ -

Re: How to delete hash element

2001-11-20 Thread Daniel Gardner
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

RE: How to delete hash element

2001-11-20 Thread Chris Spurgeon
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

RE: How to delete hash element

2001-11-20 Thread Mike Rapuano
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

RE: How to delete hash element

2001-11-20 Thread RArul
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]

RE: How to delete hash element

2001-11-20 Thread Chris Spurgeon
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

Re: How to delete hash element

2001-11-20 Thread Ahmed Moustafa Ibrahim Ahmed
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

RE: How to delete hash element

2001-11-20 Thread RArul
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,

Re: How to delete hash element

2001-11-20 Thread Michael Fowler
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

Re: How to delete hash element

2001-11-20 Thread Ahmed Moustafa Ibrahim Ahmed
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