![]() |
|
Do you know where your variables are? | |
PerlMonks |
Re: Between Two Times??? Help!by dakkar (Hermit) |
on Mar 22, 2003 at 16:48 UTC ( #245172=note: print w/replies, xml ) | Need Help?? |
Where does that strange date format come from? It's the first time I see a date with "day of the week" but without the year... Anyway. About your code: the two arrays are useless, since $days[$n]==$n for each $n, and the same holds for @Months. And keep in mind that @array[@indices] is an array slice, while $array[$index] is a single element. Search for "array slice" for more info. Now, what do you really need to do? Do something if the current time is no later than 24 hour after a given date? In this case, I'd do it this way:
-- dakkar - Mobilis in mobile
In Section
Seekers of Perl Wisdom
|
|