XP is just a number | |
PerlMonks |
Re: New to perl and regexby Utilitarian (Vicar) |
on Nov 19, 2012 at 08:44 UTC ( [id://1004484]=note: print w/replies, xml ) | Need Help?? |
Neatened up your regular expressions a bit:
print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
In Section
Seekers of Perl Wisdom
|
|