At 11:38 PM 98.02.09, Amitava Basu wrote: > Hi everyone: > > I have a problem at hand and I need your help to solve it. I have > appended below a CGI programme for guestbook. I am unable > to understand how to go about correcting the errors. Can anyone > out there help?? > > thanks Amit, Let me just comment on the syntax errors: > # Global symbol "entries" requires explicit package name. > File 'Hard Disk:Applications:Quid Pro Quo ー:cgi-bin:guestbook.cgi'; Line > 32 > my ( > $CHATNAME, > $MAXSAVE, > $TITLE, > $cur, > $entries, #<-- Shouldn't this be @entries? > $entry, > ); > # printf (...) interpreted as function. > File 'Hard Disk:Applications:Quid Pro Quo ー:cgi-bin:guestbook.cgi'; Line > 62 > # syntax error, near ");" > File 'Hard Disk:Applications:Quid Pro Quo ー:cgi-bin:guestbook.cgi'; Line > 65 > print h2 ("Prior Messages"); > foreach $entry (@entries) { > printf ("%s [%s]:%s", > $entry->param ("date"), > $entry->param ("name"), > $entry->param("message"); #<-- don't you forget something? > print br(); > print end_html; > } Takashi Ikemi ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch