[24625] in Perl-Users-Digest
Re: Relatively new to Perl, but wish to practice
daemon@ATHENA.MIT.EDU (Jon Orwant)
Wed Jul 21 19:00:20 2004
In-Reply-To: <1090449786.40fef17a53682@webmail.mit.edu>
Cc: perl-users@MIT.EDU
From: Jon Orwant <orwant@media.mit.edu>
Date: Wed, 21 Jul 2004 18:59:13 -0400
To: Julian A Caballero <jaco@MIT.EDU>
That first doublequote (before "standard") should be a colon. (This is
orthogonal to Jacob's comment.)
-Jon
On Jul 21, 2004, at 6:43 PM, Julian A Caballero wrote:
>
>
> 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