Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Begginer: Need help on implementing web Perl code on Windows

by Joost (Canon)
on Dec 22, 2004 at 22:17 UTC ( [id://416930]=note: print w/replies, xml ) Need Help??


in reply to Begginer: Need help on implementing web Perl code on Windows

Just some answers in random order:

For activeperl you can use the (command-line) ppm command to install perl modules - and I don't think LWP is installed by default with activeperl (though I might be wrong about that - I haven't used activeperl in a while)

If you've got activeperl installed correctly, clicking on a *.pl file would start the program. You can also run programs directly from the command line by typing

perl path/to/perlfile.pl
on the command prompt (DOS window). Win98 might not be the best OS to develop on, though - windows XP or NT seems to be better - or use a UNIX derivate like linux of freebsd if you've got some experience with UNIX or can afford the time to learn.

The programs that output HTML code are probably meant to be run as CGI programs, so you would need a web-server configured to run CGI scripts - I don't think win98 has one, though IIS is installed distributed with some/most/all NT and XP installes. You can also try XAMPP - which has perl, the apache webserver (and PHP) in one package.

Also, if you want a perl module that can do webscraping you might like WWW::Mechanize - it's probably available via ppm.

Another hint: running "perldoc ModuleName" from the commandline should give you the docs for that module - though activeperl also installs some nice looking HTML versions of those docs. "perldoc perldoc" should give you more info.

Replies are listed 'Best First'.
Re^2: Begginer: Need help on implementing web Perl code on Windows
by melora (Scribe) on Dec 24, 2004 at 21:12 UTC
    Agreed, agreed.
    I have a comment on the Win98SE question. Please don't -- me; I'm not recommending it, just trying to help.
    I've spent a bit of time working with Win98SE, Linux, BSD and MAC OS (MacPerl) platforms, and I have used perl CGI scripts on all of them, and moved them from one to another with almost no changes required. Portability, thy name is Perl.
    On Win98SE it's a matter of adding the Personal Web Server, and doing some things to get it to do CGI. The security is, as far as I can tell, nonexistent, but it's an okay platform for goofing around and learning a bit about CGI. I would NOT open it to the Internet, and I wouldn't use it for a production server, by any means. (For production, Apache, mod_perl... others can make much better recommendations than I can.)
    Here's a page which google gave me... which describes how to get PWS to run Perl scripts as CGI programs. It involves registry editing, so take care. Having said that, if you're careful, it's not rocket science.

    http://www.taltech.com/TALtech_web/support/bcax/Installing%20Perl%20Scripting.html

    Personally, I hope you can use a different platform, but anyway, I hope this note helps.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://416930]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-25 16:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found