in reply to weather without UserAgent.pm ?

Yes, but it probably won't be easy. In this script LWP is being used to request data from another CGI script at http://www.bom.gov.au. If you want to replace LWP you'll have to write your own web-page grabber using basic socket commands, by calling an external process like "wget" or by some other means.

I think it would be easier to just install LWP local to your script. For example, if you installed LWP into /home/pip/modules, you could put this line at the top of your script:

    use lib '/home/pip/modules';

-sam

Replies are listed 'Best First'.
Re: Re: weather without UserAgent.pm ?
by Anonymous Monk on Feb 12, 2004 at 02:52 UTC
    Hi Sam, Thanks's for the reply. I know that my server has supplied me with a "includes" directory, but I just can't get my head around getting that module installed, despite looking at instructions at c-pan. pip
      I think you're going to have to roll up your sleeves and give it a try. If it doesn't work, post a new question showing what you did, explaining what you expected to happen and showing what actually did happen.

      Here's a hint: the end result of your efforts should be a bunch of *.pm files laid out in a series of directories which match their names. So you'll see "LWP.pm" and a subdirectory called "LWP" containing "UserAgent.pm" and so on. When you've got that all you need is to point Perl at it with "use lib" and your script should work again.

      -sam

        Hi Sam, Thanks for your 2nd reply. Have done a new posting, my webhost has now installed User Agentpm. , but the script still doesn't work. pip