in reply to Split and join

This code seems very messed up, like drag-and-dropped from different sources.

you have nested loops over <CURINFILE> AND @full_data !?!

you say join but never use it, using hardcoded indices.

Cheers Rolf

( addicted to the Perl Programming Language)

Replies are listed 'Best First'.
Re^2: Split and join
by hellohello1 (Sexton) on Mar 07, 2014 at 03:26 UTC

    I am not sure if I should use the join function to fix the problem I am having :) Sorry about the misleading title!

    I just want to get the $ratio1 to be "join" back as tabs instead of breaking into new line.

    The nested loop is to allow the division for row against row. So take the whole column and put as array. $arr_ref2(@full_data) and $arr_ref2(@full_data)

    So that I can do : my $ratio1 = $$arr_ref2$index/$$arr_ref1$index;

    I hope it is more clear now? - E :)