[web] Testing perl pages offline

This topic is 5025 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

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

Share on other sites
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.

Share on other sites
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?

Share on other sites
This belongs in the Web Dev forum.

Share on other sites
Did you.... install Perl?

Go here if you didn't: www.activestate.com

Share on other sites
You need a parameter after the -t in sendmail, otherwise it won't know who to send it to.

Mark

1. 1
Rutin
27
2. 2
3. 3
4. 4
5. 5

• 11
• 9
• 9
• 9
• 14
• Forum Statistics

• Total Topics
633311
• Total Posts
3011313
• Who's Online (See full list)

There are no registered users currently online

×