tsarvind has asked for the wisdom of the Perl Monks concerning the following question:

I used the LWP::Simple module for invoking an url. however upon running the script , i get an error stating "INVALID ARGUMENT" for the get(). I have used the function as get("http://www.perl.com"); and the argument is a proper string, however the default error of UNDEF does not appear but only INVALID ARGUMENT appears. Can somebody help me with the solution for this problem???

Replies are listed 'Best First'.
Re: theLWP::simple module
by davido (Cardinal) on Jan 12, 2006 at 09:05 UTC

    I know the dependancies are a little tricky with LWP::Simple, but I've scoured the source for LWP::Simple, LWP, and LWP::UserAgent to find somewhere among the source of those modules where an error called "INVALID ARGUMENT" could be decreed. I also double checked perllexwarn and perldiag, just to see if it's a known perl error message. I don't find it in any of those places either.


    Dave

Re: theLWP::simple module
by marto (Cardinal) on Jan 12, 2006 at 09:26 UTC
    Hi tsarvind,

    I notice this is your first post (under this username anyway), welcome to Perl Monks!
    If you have not done so please have a look at the PerlMonks FAQ, and How do I post a question effectively?.
    As kulls pointed out, a listing of your code along with the description of your problem (which you have already provided) would make it easier for us to help.

    Hope this helps.

    Martin
Re: the LWP::simple module
by kulls (Hermit) on Jan 12, 2006 at 08:33 UTC
    please show atlease two lines of code in order to go through the problem.
    -kulls