Jump to content
  • Advertisement
Sign in to follow this  

[web] Testing perl pages offline

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

If you intended to correct an error in the post then please contact us.

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 this post


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

Share this post


Link to post
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 this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!