laziness, impatience, and hubris | |
PerlMonks |
Re: Problem with regular expressionby Utilitarian (Vicar) |
on Feb 12, 2013 at 16:01 UTC ( [id://1018403]=note: print w/replies, xml ) | Need Help?? |
Your criteria are a little under specified, however the following works, for what you've asked.
print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
In Section
Seekers of Perl Wisdom
|
|