[24626] in Perl-Users-Digest
Thanks [Re: Relatively new to Perl, but wish to practice]
daemon@ATHENA.MIT.EDU (Julian A Caballero)
Wed Jul 21 19:34:26 2004
Date: Wed, 21 Jul 2004 19:33:51 -0400
From: Julian A Caballero <jaco@MIT.EDU>
To: perl-users@MIT.EDU
In-Reply-To: <959389BE-DB69-11D8-B822-000393A57C94@media.mit.edu>
Thanks for the help, I got it up and running.
-Julian
Quoting Jon Orwant <orwant@media.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
>
>