hey! you have many errors in your program: is a Frankestein cut and paste experiment?!?
1- put use strict; use warnings; and probably use diagnostic;
2- you have two opening braces at lines 2 and 3.
3- you have a if else else loop (big error man!) instead of if (A) elsif (B) else
4- you are using @date[1] that is a slice of one element (if i understand) instead of $date[1]
Also you print html tags within your output. this is another bad practice. Try to isolate the code you want to manipulate dates and run it in a sample script with
use strict; use warnings;use diagnostic;HtH
L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.