in reply to Help With First LWP Script

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.

Replies are listed 'Best First'.
Re^2: Help With First LWP Script
by Dru (Hermit) on Jul 12, 2004 at 17:51 UTC
    Thanks Mercio, that helped me to get it working and thanks to you, tomhukins, I cleaned up my script with your recommendations.