are correct - use a CPAN module
for this. But, i am sure that you are still itching to
get this code work - the first glarring error i see
(besides no strict!!) is this:
@thismonth = qw( $jandays $febdays $mardays $aprdays ...
# you obviously meant:
@thismonth = ($jandays,$febdays,$mardays,$aprdays, ...
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).
Oh, by the way, hashes are great for storing the number
of days in a given month:
my %days_in_month = (
jan => 31,
feb => 28, # maybe?
mar => 31,
apr => 30,
may => 31,
But you have to account for leap years too ...
(the triplet paradiddle with high-hat)