Re: syntax error

2005-12-03 Thread ecocode
* [EMAIL PROTECTED] (Thom Hehl) wrote: | | my $sysnamelist[$SysIndex]=$input{$SYSNAME}; why do you need 'my' here ? -- Eco http://www.ecocode.net * Life is wonderful with Emacs and Perl * -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: syntax error

2005-12-03 Thread Charles K. Clarkson
Thom Hehl wrote: : $SysIndex = 0; : : if ($PageNo==1) : { : my @sysnamelist=split(/$SEPARATOR/,$config{$SYSNAME}); : my $sysnamelist[$SysIndex]=$input{$SYSNAME}; Remove the "my". $sysnamelist[$SysIndex] = $input{$SYSNAME}; : $

syntax error

2005-12-03 Thread Thom Hehl
OK, I'm getting an error running my perl script and can't seem to see the problem. Here's the error: syntax error at C:\src\rex\rex_config.cgi line 544, near "$sysnamelist[" syntax error at C:\src\rex\rex_config.cgi line 546, near "} elsif" Execution of C:\sr

Re: Syntax error with while

2003-11-11 Thread herve.suvigny
erl error' - the sort of 'unable to do at line ' > coming back from the Perl Compiler, the problem is a syntax > error in the perl code itself. Yes I think so > > this is why I put the challenge in about > > print "some stuff here", while(...){.

Re: Syntax error with while

2003-11-10 Thread Lanzaroto
The general CGI problem > is messy enough as it is, since one is trying to marry > input that comes, as in your case from a database, into > output that is wrapped in HTML. So if the problem is > a 'perl error' - the sort of 'unable to do at line ' > coming

Re: Syntax error with while

2003-11-10 Thread drieux
On Monday, Nov 10, 2003, at 14:54 US/Pacific, herve.suvigny wrote: [..] To morrow I am going to do this way and I have another idea , While in first first stuff second stuff [..] a strategy that I use is to 'build up' the page in the form $info .= some_function_stuff(@ar

Re: Syntax error with while

2003-11-10 Thread Lanzaroto
erl error' - the sort of 'unable to do at line ' > coming back from the Perl Compiler, the problem is a syntax > error in the perl code itself. Yes I think so > > this is why I put the challenge in about > > print "some stuff here", while(...){.

Re: Syntax error with while

2003-11-10 Thread drieux
problem is messy enough as it is, since one is trying to marry input that comes, as in your case from a database, into output that is wrapped in HTML. So if the problem is a 'perl error' - the sort of 'unable to do at line ' coming back from the Perl Compiler, the problem is a synt

Re: Syntax error with while

2003-11-09 Thread A L
lanzaroto <[EMAIL PROTECTED]> wrote: Le dim 09/11/2003 à 20:02, drieux a écrit : > On Sunday, Nov 9, 2003, at 09:24 US/Pacific, lanzaroto wrote: > > Le dim 09/11/2003 à 17:44, drieux a écrit : > > > >> On Sunday, Nov 9, 2003, at 08:08 US/Pacific, lanzaroto wrote: > >> > >>> > >>> while({$id, $nom

Re: Syntax error with while

2003-11-09 Thread lanzaroto
Le dim 09/11/2003 à 20:02, drieux a écrit : > On Sunday, Nov 9, 2003, at 09:24 US/Pacific, lanzaroto wrote: > > Le dim 09/11/2003 à 17:44, drieux a écrit : > > > >> On Sunday, Nov 9, 2003, at 08:08 US/Pacific, lanzaroto wrote: > >> > >>> > >>> while({$id, $nom, $pre

Re: Syntax error with while

2003-11-09 Thread drieux
On Sunday, Nov 9, 2003, at 09:24 US/Pacific, lanzaroto wrote: Le dim 09/11/2003 à 17:44, drieux a écrit : On Sunday, Nov 9, 2003, at 08:08 US/Pacific, lanzaroto wrote: while({$id, $nom, $prenom, $email} = $STH->fetchrow_array){ $REQ->Tr,

Re: Syntax error with while

2003-11-09 Thread Herve Suvigny
Le dim 09/11/2003 à 17:44, drieux a écrit : Hi, > On Sunday, Nov 9, 2003, at 08:08 US/Pacific, lanzaroto wrote: > > > > >while({$id, $nom, $prenom, $email} = > > $STH->fetchrow_array){ > > > >$REQ->Tr, > >

Re: Syntax error with while

2003-11-09 Thread lanzaroto
Le dim 09/11/2003 à 17:44, drieux a écrit : Hi, > On Sunday, Nov 9, 2003, at 08:08 US/Pacific, lanzaroto wrote: > > > > >while({$id, $nom, $prenom, $email} = > > $STH->fetchrow_array){ > > > >$REQ->Tr, > >

Re: Syntax error with while

2003-11-09 Thread drieux
On Sunday, Nov 9, 2003, at 08:08 US/Pacific, lanzaroto wrote: while({$id, $nom, $prenom, $email} = $STH->fetchrow_array){ $REQ->Tr, $REQ->td('$id'), $REQ->td('$nom'),

Syntax error with while

2003-11-09 Thread lanzaroto
Hi, I am trying to print on html page the result of select I have this error; -- Syntax error at requete line 90, near "while" requete had compilation errors (#1) (F) The final summary message when a perl -c fails. [Sun Nov 9 16:

Re: help with syntax error

2003-10-29 Thread drieux
On Wednesday, Oct 29, 2003, at 08:28 US/Pacific, Rick Triplett wrote: #!/usr/bin/perl -w print "Enter the radius: \n"; chomp ($radius = ); $area = $radius*$radius*3.14 --^ normally that would need to have a ";" to close it out. if ( $radius <= 0 ) { print "Th

RE: help with syntax error

2003-10-29 Thread Hughes, Andrew
I believe that you need a semicolon after $area = $radius*$radius*3.14 Try that. Andrew -Original Message- From: Rick Triplett [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 11:29 AM To: [EMAIL PROTECTED] Subject: help with syntax error Can someone please help me find the

help with syntax error

2003-10-29 Thread Rick Triplett
Can someone please help me find the syntax error in the following practice exercise. The perl compiler says: syntax error at line 7 near ") {" but I cannot see it! #!/usr/bin/perl -w print "Enter the radius: \n"; chomp ($radius = ); $area = $radius*$radius*3.

Re: hr; ##syntax error

2002-10-16 Thread William McKee
Robert, You're missing a closing paren on the popup_menu function. William -- Lead Developer Knowmad Services Inc. || Internet Applications & Database Integration http://www.knowmad.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

hr; ##syntax error

2002-10-16 Thread ROBERT_MCCAMMON
Hello all, I am getting a syntax error when trying to run the following with CGI (:standard). It is at line 24 which is marked below. This is coming directly from the CGI.PM documentation, worse yet I am running PERL 5.6.1. Am I missing something obvious

Re: Insertion of table causes syntax error-message

2002-06-04 Thread John Brooking
--- Richard Krause <[EMAIL PROTECTED]> wrote: > I found out what the problem is. If you write > > $q->table({-border=>undef}, >#caption('When Should You Eat Your > Vegetables?'), > > ... ... > > instead of > > print table({-border=>undef}, >caption('When Should You Eat Y

Re: Insertion of table causes syntax error-message

2002-06-03 Thread Richard Krause
I found out what the problem is. If you write $q->table({-border=>undef}, #caption('When Should You Eat Your Vegetables?'), $q->Tr({-align=>CENTER,-valign=>TOP}, [ $q->th(['Vegetable', 'Breakfast','Lunch','Dinner']), $q->td(['Tomatoes' , 'no'

Re: Insertion of table causes syntax error-message

2002-05-30 Thread Todd Wade
"Richard Krause" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all > (...) > #td(['Broccoli' , 'no', 'no', 'yes']), > #td(['Onions' , 'yes','yes', 'yes']) > #] > #) missing

Re: Insertion of table causes syntax error-message

2002-05-30 Thread Dave K
ote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all > > I'd like to generate a html page in a subroutine of my guestbook but I get a > syntax error pointing to the line where $q->end_html; is written as soon as > I include a table. If executed

Insertion of table causes syntax error-message

2002-05-30 Thread Richard Krause
Hi all I'd like to generate a html page in a subroutine of my guestbook but I get a syntax error pointing to the line where $q->end_html; is written as soon as I include a table. If executed without the table, the script runs well. (the table is copied from perldoc.cgi and its content