CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Syntax error here, can't see why

 



Louis Mc
Deleted

Apr 17, 2000, 1:33 PM

Post #1 of 2 (374 views)
Syntax error here, can't see why Can't Post

I keep getting this error:
"syntax error at /usr/siteadm/acme/cust.cgi line 130, near "$input ("")

The code, starting at line 128:
my @HTML;

for my $input (sort @input)
{
$input =~ /ACCRC/ or next;
my($vend_id, $response_cd, $mdl_id) = unpack 'A3A2A3', $input;

my $HTML = <<END_OF_HTML;
<CENTER>
<TABLE WIDTH=600>
<TR>
<TD>
$vend_id
<BR>
$response_cd
<BR>
$mdl_id
<BR>
You should use your browser's bookmarks to go to your next page.
</TD>
</TR>
</TABLE>
END_OF_HTML

push @HTML, $HTML;
}


japhy
Enthusiast

Apr 17, 2000, 1:54 PM

Post #2 of 2 (374 views)
Re: Syntax error here, can't see why [In reply to] Can't Post

There is no syntax error in this block of code. If you would place your entire code in a text file and place it online, then I, or someone else, would be able to better diagnose the problem.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives