[Omaha.pm] LWP

Andy Lester andy at petdance.com
Mon Oct 2 14:14:31 PDT 2006


> use strict;

Put in a use warnings here.

> use Crypt::SSLeay;
> use LWP::UserAgent;
> use LWP::Simple;

You don't need LWP::Simple if you're using LWP::UserAgent.

> # Script Argument Variables
> my $arg1=@ARGV[0];	
> my $arg2=@ARGV[1];	
> my $arg3=@ARGV[2];	
> my $arg4=@ARGV[3];	

I would strongly suggest naming these something meaningful.  Also,
@ARGV[n] should be $ARGV[n].

OK, I have to run, so I can't walk through this like I planned.  For
now, put on "use warnings" and see what comes out.  I will bet a nickel
it will find your prlblem.

-- 
Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance


More information about the Omaha-pm mailing list