[snipped]
> Here's the code snippet:
>
> $file = "/home/images/$name";
> open(IMAGE, ">$file") || die "unable to open filehandle $file \n";
> $saveres = $ua->request(HTTP::Request->new(GET => $pic));
> print IMAGE "$saveres";
>
Hello,
You need to specify a filename as an arg
$ua->simple_request($request, [$arg [, $size]])
This method dispatches a single WWW request on behalf of a user, and returns
the response received. The $request should be a reference to a HTTP::Request
object with values defined for at least the method() and uri() attributes.
If $arg is a scalar it is taken as a filename where the content of the
response is stored.
So;
$saveres = $ua->request(HTTP::Request->new(GET => $pic), $filename);
should do the trick
Ron