Wampa has asked for the wisdom of the Perl Monks concerning the following question:
HI,
I am a beginner in Perl and I am programing web calendar in Embperl. I use Date::Calc module for this. You can see calendar at site Calendar
All is OK but the shading of today is bad because is shading every day every month and year. Its mean when you change month you will see shade the cell which day is today.
Here is part of code:
if (Today([$year,$month,$day]) eq ($year,$month,$date)) { $bgcolor="#c0c0c0"; } else { $bgcolor="#FFFFFF"; }
Function Today give me today date. And in cycle I change date. But this code compare only day and date and no year and month. Where is problem???
Excuse my bad English I am from Slovak republic and my English is poor.
Thanks20040211 Edit by Corion: Fixed formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Compare of array
by ysth (Canon) on Feb 11, 2004 at 23:28 UTC | |
by Wampa (Hermit) on Feb 12, 2004 at 06:42 UTC | |
|
Re: Compare of array
by DrHyde (Prior) on Feb 11, 2004 at 12:14 UTC | |
by Wampa (Hermit) on Feb 11, 2004 at 12:52 UTC | |
by jonadab (Parson) on Feb 11, 2004 at 14:46 UTC | |
by flounder99 (Friar) on Feb 11, 2004 at 21:06 UTC |