Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using LWP with ActivePerl

Status
Not open for further replies.

PGen

Programmer
Aug 31, 2001
39
GB
Hi there, i'm a noobie to Perl and therfore need help.


I have installed PWS and ActiveState's ActivePerl 5.6 on my Win98 PC.

I need a little guidance on when to use Perl / PerlScript. And whether to do this in ASP or in PL files?

-------------------------------------------

Im trying to get the LWP module to work. I cant even get the simple LWP examples to work through the browser.

If i put the code in an ASP file i get an error.

If i put it in a PL file I get the 'file download' dialog box and on 'open', the pl file is then run in a dos window.

-------------------------------------------

In the PPM...When I do a 'query', no LWP modules are listed. Is this becaulse its part of the lib module (which IS installed) ???


Many many thanks.

Will
 
If you get a file download prompt, it might possibly mean your Web Server ( PWS ) does not understand what to do with the resource requested for ( file.pl in this case ).

Active Perl has installation instructions for PWS/IIS under ActivePerl FAQ ->Windows specifics->Web Server Config.

Check out the FAQ
"How do I configure Microsoft Personal Web Server 1.0x for Windows 95 to " .

LWP
===
An easy way to check out if LWP is installed is to see your API ( ActiverPerl Documentation ) and see if it is listed.


CM

 
erm where's the API viewer and what is the FAQ # please?

Ive used the PPM and have read the ActivePerl documentation, there isnt an API viewer. Do you mean the OLE browser?

There are some lwp bat files in the C:\Perl\bin directory.

And there is also an lwp directory in C:\Perl\site\lib\LWP.

Its probably installed i guess. But dosent come up in the PPM because its part of the module.

Thanks latch,


Will
 
The ActivePerl Documentation is also called API.

If the LWP module is installed, the documentaion for it *will* appear with the ActivePerl Documentation


Maybe this code could help



use LWP::Simple;

$content=get("print $content;
 
Forget PWS. Download and install Apache. Read and follow the Apache directions and you can have a REAL web server in a few hours.

..... just a thought.

Good Luck Please use descriptive titles and check the FAQs.
And, beware the evil typo.
 
It really is not that hard and when you get it running/working, you have learned some about the most commonly used web server on the net.

Apache has the typical 'double-click it' installer for Win98. You download, double-click, answer the typical Windows installer questions, and you have Apache. There are some clear instructions about how to get it to do CGI. It is easy...... tweak one file and your there. Please use descriptive titles and check the FAQs.
And, beware the evil typo.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top