Question Locked

Newbie needs help, please.

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

New to programming perl. Please help.

Downloaded ActiveState "ActivePerl-5.8.8.819-MSWin32-x86-267479.msi" and installed on my WinXP Pro PC.

Try to test programs written in .html calling .pl (supposed to be on web server) on this TESTING environment. But no luck.

What did I miss?

++++++++++ .htm code
(FORM ACTION="c:/per/bin/backatcha.pl" METHOD=GET)
(p)What is your favorite color?(INPUT NAME="favcolor")(/p)
(INPUT TYPE=submit VALUE="Send form")
(/FORM)
* all angle brackets are replaced with "(" or ")".
++++++++++ backatcha.pl code
#!/usr/local/bin/perl (.pl file stored on "c:\perl\bin\")
use CGI ':standard';
print header();
print start_html();
for $i (param()) {
print "", $i, ": ", param($i), "\n";
}
print end_html();
++++++++++

This worked when on real web server. (with #!/usr/bin/perl not local)

What is http://localhost/...... , do I need to configure this first.

Thank you for your help.

4 replies

by p.j.hutchison

You need the perl bin directory adding to your command path.

Also you will need to associate .pl with perl.exe. See html documentation on IIS to apply this.

by 1bn0

Checkout WAMP5.

www.wamp5.com

This installs Appache WebServer.MySql database and PHP5.

There may be other better alternative for your purpose.

PHP creates dynamic webpages, Usually to retrieve and display data from a database server. The webserver provides the interface environment between the user and your application.

http://localhost/ is a default pseudonym pointing back to the local machine.

by dlauxx

Thanks a lot, p.j.hutchison and 1bn0.

I now realize that I need a web server, and I am going to install IIS 5.0 which comes with WinXP and give it a try before exploring other alternatives like Apache.

Thanks again.

This discussion is closed to new replies.