[24623] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Relatively new to Perl, but wish to practice

daemon@ATHENA.MIT.EDU (Julian A Caballero)
Wed Jul 21 18:43:43 2004

Date: Wed, 21 Jul 2004 18:43:06 -0400
From: Julian A Caballero <jaco@MIT.EDU>
To: perl-users@MIT.EDU



Hi, I am starting to learn how to program in perl through an internship and I
want to continue coding in perl for websites and such. I went to
http://web.mit.edu/answers/unix/unix_perl.html and followed the instructions
there (chmod u+x test.pl), but all I get when I access the file through a
browser (Firefox, if it's relevant) is the html code. This is the file
test.pl:

#!/usr/athena/bin/perl -w

use CGI qw("standard);  # I got these two lines from the file I am working on
my $q = new CGI;        # at the company. Heard it was for common web stuff


print
"
<HTML>
 <HEAD>
  <TITLE>Test</TITLE>
 </HEAD>
 <BODY>
 <BR><BR> This is a test.


 </BODY>
</HTML>
";

Please let me know what I can do in order to see the HTML on the browser.

-Julian

home help back first fref pref prev next nref lref last post