Other responses should help you solve your problem, but I hope you don't mind me pointing out a couple of minor style issues with your code:
You use LWP::Simple yet never do anything with this class. If you don't call any methods on a class, you don't need to include it in your program.
You create an LWP::UserAgent object using an indirect method call (new LWP::UserAgent as opposed to LWP::UserAgent->new()) which will cause problems if you have a new() subroutine in your current package. In general, it's best to avoid indirect method calls.