Re: Updating an array within a hash

2004-02-11 Thread Soumyadeep nandi
Hi Jan and Stephen, I could solve my problem. The way I could do is as follows: push (@{$C{$range}}, $c); where C is the hash having keys some integers and values as an array. So I could add more elements($c) to the array inside that hash(%C) is as above. Thank you so much Stephen and Jan for h

Re: Updating an array within a hash

2004-02-10 Thread John W. Krahn
Jan Eden wrote: > > Soumyadeep nandi wrote: > > >I am stuck in a problem for which I need your help. My > >problem spins around adding an element in an array > >within a hash. > >I have a hash declared as $hash{"1"[EMAIL PROTECTED]; now I > >want to add an element to it within a loop. How would >

RE: Updating an array within a hash

2004-02-10 Thread Stephen Hardisty
> Hi Everybdy, > I am stuck in a problem for which I need your help. My > problem spins around adding an element in an array > within a hash. > I have a hash declared as $hash{"1"[EMAIL PROTECTED]; now I > want to add an element to it within a loop. How would > I do this? I would be highly gratefu

Re: Updating an array within a hash

2004-02-10 Thread Jan Eden
Soumyadeep nandi wrote: >Hi Everybdy, >I am stuck in a problem for which I need your help. My >problem spins around adding an element in an array >within a hash. >I have a hash declared as $hash{"1"[EMAIL PROTECTED]; now I >want to add an element to it within a loop. How would >I do this? I would

Updating an array within a hash

2004-02-10 Thread Soumyadeep nandi
Hi Everybdy, I am stuck in a problem for which I need your help. My problem spins around adding an element in an array within a hash. I have a hash declared as $hash{"1"[EMAIL PROTECTED]; now I want to add an element to it within a loop. How would I do this? I would be highly grateful to you if yo