in reply to
Short or Long Hand
You are testing for the value of $day falling in the range 1..5 using a negative test (do something
unless
one of the conditions is true). It will read better if you turn it into a positive test.
if (($day >= 1) && ($day <= 5))
[download]
Comment on
Re: Short or Long Hand
Download
Code
In Section
Seekers of Perl Wisdom