in reply to Calendar won't display day numbers
But even with that fix, you will still get erroneous results. My advice? Start over, use strict, use the HTML methods from CGI - at least use CGI.pm's header(). Learn a templating module such as Template-Toolkit or (my favorite) HTML::Template. That or use one of the aforementioned CPAN modules that generats calenders (which is what i would really do).@thismonth = qw( $jandays $febdays $mardays $aprdays ... # you obviously meant: @thismonth = ($jandays,$febdays,$mardays,$aprdays, ...
Oh, by the way, hashes are great for storing the number of days in a given month:
But you have to account for leap years too ...my %days_in_month = ( jan => 31, feb => 28, # maybe? mar => 31, apr => 30, may => 31, etc ... );
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (jeffa) Re: Calendar
by Foncé (Scribe) on Jul 24, 2002 at 15:24 UTC | |
by joealba (Hermit) on Jul 24, 2002 at 16:44 UTC |