in reply to LWP problem

You should switch to WWW::Mechanize, its much easier to use, and Use strict warnings and diagnostics or die