here is the error:

Execution of customgame.pl aborted due to compilation errors.

this is the script:

#!/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 ($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>");
} elseif ($name eq "randal") {
print ("hi, since you're $name , you do not have to guess the secret word!");
}
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>");
}

print<<end_page;
</body>
</html>
end_page




----- Original Message ----- 
From: "Mel Matsuoka" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 19, 2001 9:40 AM
Subject: Re: error info...


> I wrote:
> >
> > Use CGI::Carp qw/fatalsToBrowser/
> 
> bc wrote:
> >i'm using that...
> >no luck though...
> 
> Just out of curiosity, did you follow their server-specific perl script
> debugging info at http://www.netfirms.com/supportSearch?BROWSE=advanced ?
> 
> If youre developing on Windows, a common problem is uploading your scripts
> in binary format, instead of ASCII. Unix servers want to just see a
> carriage-return at the end of each line. Windows ends lines using CR/LF
> (carriage-return/line-feed). Uploading these files to a unix host in binary
> format preserves the line-feeds, hence unix based script interpreters such
> as perl choke on it. Uploading in ASCII (or "auto" in your FTP application)
> will convert the textfile appropriately.
> 
> So I think it's a bit premature to be looking for another host that "lets
> you use free space to learn perl". From the looks of it, Netfirms supports
> everything you need to develop perl scripts. It sounds like you're doing
> something wrong on your side (most likely syntax errors in your perl code).
> 
> Post the code which is giving you the problem...otherwise its next to
> impossible to give you specific advice.
> 
> Aloha,
> mel
> 
> 
> --
> mel matsuoka                    Hawaiian Image Productions
> Chief Executive Alphageek              (vox)1.808.531.5474
> [EMAIL PROTECTED]                  (fax)1.808.526.4040
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to