in reply to URL post

CPAN can be very helpful, when it comes to getting examples on how to use modules.

A simple search for LWP::UserAgent would have shown that you need an HTTP::Request object.

A post from last week, Where and how to start learning Perl by woolfy, is worth taking a look at. It gives many fine perl resources.