[web] Testing perl pages offline

Started by
4 comments, last by markr 19 years, 2 months ago
I know perl and I'm going to use it for a CGI script. I don't yet have web hosting, I figured my browser (Firefox, running on Linux) wouldn't struggle with this, but it keeps trying to find an external program to run the .pl file with. So how do I get around this? Thanks
spraff.net: don't laugh, I'm still just starting...
Advertisement
Run a server. Seeing as you said you're on Linux, have a hunt for Apache.
Install that, copy the files to the htdocs folder and point your browser to http://localhost
You'll also need to find some way to get Apache to execute the Perl scripts. I've only set up Apache to use PHP before, so you'll have to hunt around a bit.

[Website] [+++ Divide By Cucumber Error. Please Reinstall Universe And Reboot +++]

Slightly unrelated, but i've come across another problem. Can anyone tyell me why the following perl code
open MAIL, "| /usr/sbin/sendmail -t";print MAIL 'From: me@domain.com\nTo: someone@place.com\nSubject: abc\n\nTest\n.\n';close(MAIL);


gives "No recipient address found in header" as output?
spraff.net: don't laugh, I'm still just starting...
This belongs in the Web Dev forum.
Did you.... install Perl?

Go here if you didn't: www.activestate.com
You need a parameter after the -t in sendmail, otherwise it won't know who to send it to.

Mark

This topic is closed to new replies.

Advertisement