Subject: | problem with filename in File::Fetch ? |
Date: | Mon, 1 Feb 2016 13:37:08 +0100 |
To: | bug-file-fetch [...] rt.cpan.org |
From: | Bruno Contreras Moreira <bcontreras [...] eead.csic.es> |
Hi, I have been using File::Fetch and seem to have found a problem when
handling a URL which does not contain a file name, but rather some params.
This is the code:
my $ff =
File::Fetch->new(uri=>"http://www.ncbi.nlm.nih.gov/Traces/wgs/?download=NC_010159.1.gbff.gz");
my $content;
if($ff->fetch( to => \$content )){
# ...
}
This fails on my system, even using to => '/tmp', with a message such as:
"Cannot rename 'FileFetch.HhO9er/-2296' to 'FileFetch.HhO9er/': Not a
directory"
As I am not able to control the name of the output file I cannot proceed,
thanks for your support,
Bruno
--
Bruno Contreras Moreira
Investigador ARAID
Estación Experimental de Aula Dei / CSIC
Av.Montañana 1.005, 50059 Zaragoza (España)
Tel:(+34) 976716089 Fax:(+34) 976716145
bcontreras@eead.csic.es http://www.eead.csic.es/compbio