in reply to Re^6: How can one get all possible combinations of elements of different arrays using File::Glob(bsd_glob)?
in thread How can one get all possible combinations of elements of different arrays using File::Glob(bsd_glob)?
Not what I get. I only get the six desired lines. Probabaly your k?.txt files have a lot of empty lines??? In which case, you need to modify the code by adding two more lines:
chomp $DNA; $DNA=~s/\n/,/g; $DNA=~s/,+$//g; # new $DNA=~s/,,+/,/g; # new $string .= "{$DNA}";
This removes multiple commata or trailing commata created by empty lines. Let me know whether this solves the problem.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: How can one get all possible combinations of elements of different arrays using File::Glob(bsd_glob)?
by supriyoch_2008 (Monk) on Apr 25, 2013 at 11:07 UTC |