X-Git-Url: https://git.donarmstrong.com/?p=function2gene.git;a=blobdiff_plain;f=bin%2Fget_ncbi_results;fp=bin%2Fget_ncbi_results;h=3e1a6259ce1d2e717727ad7a9ed4a1d1a3bef118;hp=7a869014bc15525ab80f36c0fc02ad50ac94f4eb;hb=0486e6434cd182e8b30ba008d98ad3d3f008d2ab;hpb=3557eb364c40602a2f2d3f4c2a68edd6ee00b632 diff --git a/bin/get_ncbi_results b/bin/get_ncbi_results index 7a86901..3e1a625 100755 --- a/bin/get_ncbi_results +++ b/bin/get_ncbi_results @@ -143,6 +143,7 @@ while (<$terms>) { # Get XML file my @current_ids; + print {$xml_file} "\n"; while (@current_ids = splice(@gene_ids,0,5)) { $uri = URI->new($options{pubmed_site}.$options{pubmed_get_url}); $uri->query_form($uri->query_form(), @@ -167,10 +168,10 @@ while (<$terms>) { $response =~ s/^\s*
//gso;
 	  $response =~ s#
\s*$##gso; - print {$xml_file} $response; sleep 10; } + print {$xml_file} "
\n"; undef $xml_file; }