develooper Front page | perl.beginners | Postings from September 2009

Re: some errors in databasescript

Thread Previous | Thread Next
From:
Alexander Koenig
Date:
September 17, 2009 04:28
Subject:
Re: some errors in databasescript
Message ID:
4AB21D58.9020407@mpi.nl
Hi Ruprecht,

You wrote on 09/17/2009 10:31 AM:
> 
> syntax error at ./statistik.pl line 73, near "} or"
> syntax error at ./statistik.pl line 82, near ") {"
> syntax error at ./statistik.pl line 86, near "} or"
> Missing right curly or square bracket at ./statistik.pl line 100, at end
> of line
> Execution of ./statistik.pl aborted due to compilation errors.
> 
> 
> Here the scriptcode:

Line numbers would have been great.

about line 40
> die $sth->errstr if $sth->err;
> 
>   while (($name, $vorname, $firma) = $sth1->fetchrow_array) {
-->
You never close this opening curly bracket. That's probably the problem.

hth
Alex

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About