in reply to cgi calander

first off, do not use &function_name; calls. use function_name() instead. unless you know the difference.

also:

print th(@week);
You don't want to do that for each date, do you? By the way, you probably need to provide references to arrays as arguments to Tr and td, but my memory of the CGI.pm's HTML constructs is a bit rusty.

here's a clear example of how to use the CGI table methods. Note the nested calls to table(), td() and Tr().

side note:

but [I] cannot seem to get the 30 days to print using a table in CGI
It's generally useful to specify what you expect of the output and in what way your current code doesn't fulfill that expectation. Is the table not formatted correctly? Is there no table at all? Do you want to flip the horizontal and vertical axis? I don't know.

For general reference: I know what i mean, why don't you?, how (not) to ask a question and how to ask questions the smart way.

ps: it's calendar :-)