![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re: What's the meaning of die ref $res... ?by Utilitarian (Vicar) |
on Jan 12, 2012 at 17:01 UTC ( #947582=note: print w/replies, xml ) | Need Help?? |
Look for the Ternary operator in the perlop doc.
Could be written as
print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
In Section
Seekers of Perl Wisdom
|
|