good_greeting.p6

($sec,$min,$hour,$day,$mon,$year) = localtime();

if $hour < 12 {
    $greeting = "Good morning";
}
elsif $hour < 17 {
    $greeting = "Good afternoon";
}
else {
    $greeting = "Good evening";
}

say "$greeting World!  (The time is $hr:$min)";