I run a script that retrieves the urls from the database and executes the :: fetch () file. In my opinion, file :: fetch () only works if there really is a file in the download URL.
However, there is a random URL in my database that does not have a file to download. So, is there any module that I can use to check if there is a file in the url that I am trying to execute file :: fetch ()?
In my script
there is a linemy $uri_handle = File::Fetch->new(uri => $url);
where $ url might be something like http://asiaone.comwithout actually getting the file.
And I get this error, which I am desperately trying to avoid, because there are other URLs that basically contain the files to be extracted.
Use of uninitialized value $path in pattern match (m//) at C:/Perl/lib/File/Spec/Unix.pm line 267.
Use of uninitialized value in string eq at C:/Perl/lib/File/Fetch.pm line 395.
Hostname required when fetching from 'http' at C:\test\multihashtest2.pl line 100 thread 2
, ?
URL-
http: