Subject: | File::Fetch errors out on a https url without an error code |
Date: | Sun, 18 Oct 2015 03:45:24 +0000 |
To: | bug-file-fetch [...] rt.cpan.org |
From: | Joel Mathew <joel [...] joel.su> |
Example script:
use strict;use warnings;use File::Fetch;my $url =
'https://ftp.mozilla.org/pub/firefox/releases/42.0b7/linux-i686/en-US/firefox-42.0b7.tar.bz2';my
$ff = File::Fetch->new(uri => $url);my $where = $ff->fetch( to =>
'/tmp' ) or die $ff->error;print "Downloaded to ".$where."\n";
At execution:
#./filefetch.plUse of uninitialized value in die at ./filefetch.pl
line 12.Died at ./filefetch.pl line 12.