You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
583 B
Perl

#! /usr/local/bin/perl
($sec, $min, $hr, $dayOfMonth, $month, $yr,$weekday, $dayOfYear, $dayLightStandardTime) = localtime(time);
if ( ($month == 11) && ($dayOfMonth == 23 || $dayOfMonth == 24) ){
print "Merry Christmas World \n";
}
else {
if ($hr > 18){
if ($hr < 21){
print "Good Evening World\n";
}else {
print "Good Night World\n";
}
}elsif ($hr > 12){
print "Good Afternoon World\n";
}elsif ($hr > 6) {
print "Good Morning World\n";
}else {
print "Go to BED already! \n";
}
}