oryann9 wrote:
>
> --- zentara <[EMAIL PROTECTED]> wrote:
>>
>> [EMAIL PROTECTED] (oryann9) wrote:
>>
>>> Will anyone offer some kind help?
>>
>> See:
>> http://perlmonks.org?node_id=599419
>>
>> Or groups.google.com for "perl html cgi calendar".
>
Why did you send me that link? That does not help me. I use both sites to
seek help when needed.

Zentara sent you that link, obviously, because he thought it may help. You owe
him thanks, not abuse. And now you owe him an apology as well.

I thought this was a list to get help because people here like to offer
help after all we all love Perl?! I did google cgi calender, but I am not
going to copy someones code because that defeats the purpose of learning.

This is indeed a list to get help with Perl. What help are you expecting if
not what you have been offered? You seem to know the answer yourself, as you
said earlier:

I was thinking of manipulating the @weeks_anonymous array with select
dayofweek(curdate()) rather than using hardcoed undef's.

And yes, that's obviously the thing to do. You are displaying 31 days of
calendar information, being fifteen days either side of the current date
(which is something you could easily have told us but I had to work out from
your Perl). So you need to use $dayofweek to work out what day of the week it
was fifteen days ago, and so how many blank days to add at the beginning of
your first calendar line. Hard-coding two of them as you have done will work
only once each week. And you will want to think about how you can display 32
array elements (0 .. 31) when you have pushed only 31 onto the array.

More than this I cannot offer. I don't know what range of values your
$dayofweek variable holds so I can't even guess what to code.

Rob

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to