In my experience with Perl, whenever you use the construct 'print
<<"tag_name";' you need to surround it with either single quotes (') or
double quotes (").  That's the only thing that I see that could be wrong.

Brad Handy

--www.jack-of-all-trades.net
[EMAIL PROTECTED]

> -----Original Message-----
> From: bc [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 19, 2001 6:04 PM
> To: [EMAIL PROTECTED]; Mel Matsuoka
> Subject: new one...
>
>
> new error, darn, i wish the browser would print the errored line #, any
> ideas yall?
>
> Execution of customgame.pl aborted due to compilation errors.
>
> was the error...
> here was my page...
>
> #!/usr/bin/perl -w
> use CGI::Carp qw(fatalsToBrowser);
> #howdy
> use CGI qw(param);
>
> print<<end_of_html_start;
> content-type: text/html
>
> <html><head>
> <title>customgame</title>
> </head>
> <body>
> end_of_html_start
>
> $guess = param("guess");
> $name = param("name");
>   if ($guess = "") {
>  if ($name eq "") {
>  print ("hello there, please enter name here:<form method=post
> action=customgame.pl><input type=text name=name><input type=submit
> value=enter></form><br>");
>  } elsif ($name eq "randal") {
>  print ("hi, since you're $name , you do not have to guess the secret
> word!<br>");
>  } else {
>  print ("your not randal, so you have to guess the secret word:<form
> method=post action=customgame.pl><input type=text name=guess><input
> type=submit value=enter></form><br>");
>  print ("hello there, please enter another name here:<form method=post
> action=customgame.pl><input type=text name=name><input type=submit
> value=enter><br>");
>   }
>   } elsif ($guess = "toe") {
>   print ("you guessed it!  good job bossman!<br>");
>   print ("go read the <a href=http://www.abcnews.com>news</a>");
>   ) else (
>   print ("Wrong! <a href=http://toes.netfirms.com>go</a> again...");
>   }
>
> print<<END;
> </body></html>
> END
>
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to