in reply to LWP user agent request fails

check the value on $ua too. Make sure it is defined. Are those spaces around the -> in $response = $ua -> request ( $request );? Maybe removing them will help. Not sure