in reply to How do I use CGI.pm methods in a loop
You don't seem to be calling the Tr function. Also, you seem to expect method calls to be expanded in double-quoted strings - which they aren't. Oh, and you're trying (unnecessarily) to quote characters with the wrong kind of slash.
while ($dy < 32) { if ($dow == 0 || $dow == 6) { $table_info .= $q->Tr({-align => 'left', -color => 'yellow'}, $q->th([$...])); } else { $table_info .= $q->Tr({-align => 'left'}, $q->th([$...])); } $dy++; }
With code like that I'd assume that you'd get a lot of syntax errors. Did you check the web server error log?
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do I use CGI.pm methods in a loop
by davidrw (Prior) on Jul 28, 2006 at 12:10 UTC |