#!/usr/bin/perl -w use strict; use warnings; use LWP::Simple; my $file = "tmpfile"; my $url; $url = "http://www.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?"; $url .= "db=Pubmed&retmax=500&id=15017969&retmode=xml"; getstore($url, $file); exit;