On Sunday, Nov 9, 2003, at 17:59 US/Pacific, A L wrote: [..]
Thank you but I prefere do it by myself, to understand what I am doing,
the target is to improve myself in Perl CGI
[..]

not a problem. I put forward the Foobar package as a way
to think about testing coding ideas. 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 <foo> at line <integer>'
coming back from the Perl Compiler, the problem is a syntax
error in the perl code itself.

this is why I put the challenge in about

print "some stuff here", while(...){....}, "some other stuff";

since I can not find a way to do that. I tried a variety of
ways to think about it, and did some code runs at it, but
they all kept coming up with the variation on the

"syntax error with while"

response at compile time.

BUT I can solve the problem

        print "some stuff here;
        while ( my ( $id, $thing, $third, $forth) = $req->fetch())
        {
                print "$id, $thing, $third, $forth \n";       
        };
        print "some other stuff";

So you might want to attack the problem along that line.



ciao
drieux

---


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



Reply via email to