Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3841572
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T15:40:18+00:00 2026-05-19T15:40:18+00:00

I am new to Perl and am having trouble getting my scripts to run

  • 0

I am new to Perl and am having trouble getting my scripts to run properly. Where am I supposed to put the actual Perl scripts in order for them to run correctly? I am testing everything out on my lap top and am trying to call a script from a html page and all I get is the actual script (code) itself displayed in my web browser as opposed to the information that the code is designed to produce. Therefore, I figure I am supposed to put the Perl file somewhere else? Currently I have the Perl script and the HTML file in the same directory. Any help would be greatly appreciated! See below:

 <head>
   <title>Student Web Page</title>
 </head>

 <body>

  <h1>WELCOME! You have reached Kito's Student Web Page</h1>
  <br />
  <p>To run the folloiwing applications, click on the appropriate line:</p>

  <form ACTION="first.pl" METHOD="get">
    <p>
    <input TYPE="submit" VALUE="Step 5 - Perl Environment Variables">
    </p>
  </form>             

#!c:\perl\bin\perl.exe -w
use strict;

print "Content-type: text/html\n\n";
print "<HTML><HEAD><TITLE>Environment Variables</TITLE></HEAD><BODY>";

foreach (keys %ENV) {
    print "<BR><FONT COLOR=green>$_</FONT> is set to <FONT COLOR=red>$ENV{$_}</FONT>";
}

print "</BODY></HTML>";  
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T15:40:18+00:00Added an answer on May 19, 2026 at 3:40 pm

    You need to configure your webserver to execute the CGI file. How this is done depends on the webserver and operating system.

    Some examples:
    http://www.thesitewizard.com/archive/addcgitoapache.shtml

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to Perl Scripts and I am having a bit of trouble.
I'm having trouble translating a subroutine from Perl to PHP (I'm new to Perl).
I've just written my first Perl module and am having trouble getting it to
I am new to Perl and I am using ActivePerl . I am getting
I'm new to Perl and want to know of a way to run an
I am having trouble understanding / using name spaces with XML::LibXML package in Perl.
I'm new to Perl and regular expressions and I am having a hard time
Hi I am new to Perl an in a learning process. I am having
I'm having a very strange error. I run a perl script which executes linux
I'm relatively new to Perl, writing some XML parsing scripts. I have done two

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.