![]() |
|
Just another Perl shrine | |
PerlMonks |
Re: Getting lines in a file between two patternsby Utilitarian (Vicar) |
on Jul 05, 2012 at 05:13 UTC ( #979950=note: print w/replies, xml ) | Need Help?? |
One option would be to use the range operator eg.
print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
In Section
Seekers of Perl Wisdom
|
|