in reply to Re: question to a complex structure of hash/array
in thread question to a complex structure of hash/array

Hello!

>I also do not understand why you instantiate $ii = -1; and on the next step 3 lines after you are adding 1 $ii = $ii + 1; which will result to 0. You can get this value from your for loop why you need to apply this calculation?

I removed this now with $ii and $i and use only $i.
I had e.g. (0 1 2 3 0 0 0 7 0 9) as an input and my first try was, to keep these structure and take another structure, which only contain the places, which are not 0.

Regards, buchi

  • Comment on Re^2: question to a complex structure of hash/array