Re: Cannot validate dynamic html with W3C because of missing Character Encoding

2002-10-07 Thread Richard Krause
Hi guys I updated my cgi.pm to the most recent version available. But this didn't help. I therefore did some more testing, if I write my script like this: print $q->header, $q->start_html(), I'm not getting any meta tags at all and of course it doesn't get validated. I then tried to i

Re: CGI simple but not working

2002-10-04 Thread Richard Krause
rite."); > } else { > print hr, start_form; # hr() emits html horizontal rule: > print p("Please select a flavor: ", textfield("flavor","mint")); > print end_form, hr; > } > > > Thanks, > bnegrao. > > > - Original Message -

Re: CGI simple but not working

2002-10-04 Thread Richard Krause
Hi Bruno It's the "print q"-Statement, if you write it like this, it works: #!/usr/bin/perl -w use diagnostics; use strict; use CGI qw(:standard); my $favorite = param("flavor"); print header, start_html("Hello Ice Cream"), h1("Hello Ice Cream"); if ($favorite) { print q("Your favorite fla

Combination of "while" and "for" delivers wrong result from array

2002-08-04 Thread Richard Krause
Hi all The following script displays a overwiev from a addresslist with links to the details of each entry. With an iteration I create the no. of each row that is being handed over to details.cgi. It all works perfectly well apart from the fact that the html links that get displayed all have got

Print entire single column of csv-file using "split"

2002-07-25 Thread Richard Krause
Hello I'd like to print the country-column of the follwing csv-file: eastwood;clint;usa kinski;klaus;germany wayne;john;usa This is the script I wrote: #!c:/perl/bin/perl -w use diagnostics; use strict; open(ADDRESSLIST,"; close (ADDRESSLIST); foreach (@list) { @l

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'

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 will be rep