in reply to removing an element without index

Welcome to the monastery,

Perl monks is not a code writing service but an a collective self-education project, to that end, show us what you have tried to do and you will gain more from the resulting comments.

All of the monks who have responded to you are trying to help you, even if it seems a little harsh, however posting a working solution would not advance your understanding, whereas finding the solution yourself, and learning how to find the solution yourself will allow you to develop as a programmer (pun intended)

So

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