Sign in to follow this  

[web] Testing perl pages offline

This topic is 4687 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
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

This topic is 4687 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this