in reply to replacement for LWP::Simple ?

Thank you guys, but I am just a beginner ;-) so please be patient. I copied LWP module to my local /cust-bin/ directory. I tried a simple script:
#!/usr/local/bin/perl use lib './LWP'; use LWP::Simple; $myDocument = get "http://www.ecst.csuchico.edu/"; print "Content-type: text/html\n\n", $myDocument;
I got a blank page rather then http://www.ecst.csuchico.edu/
But it does not work.
What should I do ?

Jacek

Update: added <code> tags, minor HTML adjustements. larsen

Replies are listed 'Best First'.
(wil) Re: replacement for LWP::Simple ?
by wil (Priest) on May 14, 2002 at 09:03 UTC
    What should I do ?

    Check your error_log(s) to see what went wrong. Your error_log usually gives you an accurate reading of what went wrong, or a preety good idea of where to start looking.

    It is most probably an error relating to the LWP module you just installed. Try Sweeper's suggestion and see where that leads you.

    - wil
Re: Re: replacement for LWP::Simple ?
by Biker (Priest) on May 14, 2002 at 09:12 UTC

    Copy Simple.pm to the /cust-bin/LWP directory. (Create if necessary.)

    use lib '/cust-bin'; use LWP::Simple;

    Everything went worng, just as foreseen.

Re x 2: replacement for LWP::Simple ?
by Sweeper (Pilgrim) on May 14, 2002 at 05:41 UTC
    Should you write use lib './LWP'; or use lib '.'; ? The first one will seek ./LWP/LWP/Simple.pm, which may not be what you intended.
    On the other hand, you can write both lines, it won't hurt.
    On the gripping hand I have not tested it, I may be wholly wrong.