in reply to Filter rows according to certain criteria based on CV

$ratio1 = ( $$arr_ref2[$index1] / $$arr_ref1[$index1], + "\t" ); $variable1 .= $ratio1; #join column by column

Have you tried to see inside $variable1 and $ratio1?

Replies are listed 'Best First'.
Re^2: Filter rows according to certain criteria based on CV
by hellohello1 (Sexton) on Mar 26, 2014 at 08:26 UTC
    Yes I have :) $ratio1 give me one column. And $variable1 give me all the columns generated together. Output beautifully according to what I want. Thanks to your guidance!

    PS: Initially I couldn't because I forgot to add in the simple line:

    $variable1 ='';
    inside the for loop to erase the previous line.

      Yes I have :) $ratio1 give me one column. And $variable1 give me all the columns generated together. Output beautifully according to what I want. Thanks to your guidance!

      You know that is impossible with the code you posted, right?

        Yes!. I forgot to add in
        $variable1 =' ';
        in my first post! :) (updated code!)