it is a windows machine and it is in the C:\ directory. so C:\data\ is the path.
to test that, I updated it to download to both /data/ and a new subdirectory called: /data/documents/
changed it to this:
#$path='/data/';
$path= '/data/documents/';
while (my $ref = $query->fetchrow_hashref()) {
print "url: $ref->{url}\n";
my $ff = File::Fetch->new(uri=>$ref->{url});
my $where = $ff->fetch( to => '$path');
my $error= $ff->error();
print $error;
and the output is the same.
no error messages.
changing it from print $error to print $ff, I get the link followed by:
File::Fetch=HASH(0x30d2a18)