in reply to Re: How to store the output from foreach loop into variable/array without printing?
in thread How to store the output from foreach loop into variable/array without printing?

Hi Kcott, yes I did add the strict pragmata, which prompt me that error. Have been trying to figure out how to work out my code by trying array method, etc.

Pardon my limited knowledge, if I want to put push statement into the for loop, the $ratio1 will be added into the @data1 one by one until one loop is finished?

I did try putting in the for loop, but I still couldn't get the output. So I try trial and error and end up writing to you guys for help and wonder if there is a better way to do it.

Thanks :) I am looking into the earlier advice :)

  • Comment on Re^2: How to store the output from foreach loop into variable/array without printing?