Hello Anonymous Monk,
I see already the fellow Monks have provided you with plenty of options. I just would like to provide two more possible solutions.
But I still lost, what is the a specific order of the files in your file? Is it in numerical order?
Since you did not provide us with an example of your file and expected output I will just assume, and propose something. Why not extract all FASTA files from the file in an array and simply concatenate them with the join?
Just a suggestion if I have understand correctly.
Provide us more information so we can help you.
Solution one using File::Slurp/read_dir:
Solution two using readdir:
Sorry I miss understood the question.
Looking forward to your update, BR.
Seeking for Perl wisdom...on the process of learning...not there...yet!
|