in reply to Can't locate object method new via package URI::URL
Try adding use URI::URL;. And consider using URI instead (URI::URL is for backwards compatibility with older LWP code).