Re: Strange behaviour in accessing array element

2004-06-02 Thread Paul Johnson
On Thu, Jun 03, 2004 at 01:23:19AM +0800, Edward Wijaya wrote: > The codes below gives this result: > > ATGC > A:2 2 > T:1 1 > C:1 1 > G:2 5 > _END_ > > which I found strange, because the value for first > row of second column should be 0. > My question is how can I avoid my code >

Strange behaviour in accessing array element

2004-06-02 Thread Edward Wijaya
Dear Sirs, The codes below gives this result: ATGC A:2 2 T:1 1 C:1 1 G:2 5 _END_ which I found strange, because the value for first row of second column should be 0. For example in the element of @array = , it takes the value of the first element of the array @pwmA (i.e 2) instead