The following code is just for one id and the get_seq_by_id
doesn't accept more or an array
use Bio::DB::GenBank;
my $gb=new Bio::DB::GenBank;
my $seq= $gb->get_Seq_by_id ('ADE06225');
write_sequence (">roar.fa", 'fasta',$seq );
Given a text file get me the sequences! Any clue?
ADE06225
KJU84168
CEJ19818
AEG68532
..
..
..
I do not think we should be giving people code.
Providing code is encouraged, that is why there is syntax highlighting for code (and there has been lots of discussion about it) and auto-linking for gists. If you don't want to provide code, that's fine, but don't discourage people from helping.
I'd definitely read these discussions - I've rarely come across them. Code encourages copy-paste, and must be used as the last option. I'd prefer (both as the one who asks and the one who responds) if people gave me an approach and a few leads and not the answer directly. Direct answers help when the question is on a concept, but when it's code, it's better to have people explore.
In Bioinformatics, of course, there's always a well-tested tool that does what you need doing.