in reply to Date::Day problem?!
instead of$today = &day($mon,$day,$year) ;
The following does the same, and it uses only core modules:$today = &day($day,$mon,$year) ;
or for current local time:use POSIX qw( strftime ); use Time::Local qw( timegm ); print strftime("%a", gmtime(timegm(0, 0, 0, $day, $mon-1, $year)));
Use %A instead of %a if you are interested in the full name of the day instead of the three letter abbrieviation.use POSIX qw( strftime ); use Time::Local qw( timelocal ); print strftime("%a", localtime);
|
|---|