Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

how can i display greetings like good morning or good evening according to local time using perl on windows?

Replies are listed 'Best First'.
Re: ansuman question
by Utilitarian (Vicar) on Feb 05, 2011 at 09:34 UTC
    Read my sig ;)
    print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
Re: ansuman question
by Anonymous Monk on Feb 05, 2011 at 07:10 UTC