Still new to perl and easy ways to work around it so I am seeking help ! I am sure this issue isn't a very difficult one to solve but I am still stuck nonetheless...
I would like to see the progression of this bit of my script:
my @goods = map { my @vals = @{$ids_for{$_}};
my @matches = map { my $tf_id = $_;
grep {$_ =~ $tf_id} @vals } @tf_ids;
my $num_match = scalar(@matches);
## $num_match
for my $match ( @matches[0..($num_match-1)] ){
say {$out} "./" . $_ . ".fasta:" . $match if (scalar(@matches) > 0);
}
} @keys;
## @goods
The input of the script is a file containing ids looking like this:
>7_54 lcl
>7_264 lcl
>7_332 lcl
>7_427 lcl
>7_598 lcl
>7_772 lcl
There are a couple thousands of them which is why I would like to know the progress made !
Thanks for your replies ! Let me know if you need any more essential info that I might have forgotten.