X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=bin%2Fget_ncbi_results;h=3e1a6259ce1d2e717727ad7a9ed4a1d1a3bef118;hb=a4b9214b7939fbe990f2373684dfd7aa1f9e77e2;hp=7a869014bc15525ab80f36c0fc02ad50ac94f4eb;hpb=8e1fe04cb712a2231b9a7112b7a701a67f9ddd31;p=function2gene.git 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; }