in reply to Re: manipulating a data table
in thread manipulating a data table
Can you explain me a little bit what some portions of your code is doing. In the while loop you are adding each line of the input file as an array ref into an array named inputfor my $c(1..16)
Can you explain me the use of map and what exactly is that line doing? Also can you right this statement in the loop form rather than one line. It is easy to understandwhile (<>) { chomp; my @s = split /\t/,$_; push @input ,\@s; }
Thanks$output[$_][$c] = $x++ for sort { $input[$b][$c] <=> $input[$a][$c] } +0 .. $#input;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: manipulating a data table
by choroba (Cardinal) on Aug 16, 2016 at 20:29 UTC |