Thank you a lot SES. One last question, could you explain me a little bit the meaning of this last two lines?:
say join "\n", ">".$seq->id, $seq->seq
if any { $_ == $num } @ids;
And another thing, using "say" is possible to print to a file like with "print?
Thanks again.