in reply to Need help with using Hash

Do read perldoc perlintro in particular (for this case, read all of it and learn the language) the "Perl variable types" section which introduces the concept of hashes.

Now to the meat of your question, what is it you need to do

Welcome to the monastery and hope you enjoy the learning experience ;)

print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."