in reply to Re^4: Can you explain the result?
in thread Can you explain the result?
Indeed it is, if you want something evaluated put it in parenthesis to be sure
returns 0 as you would expect.return (1 and 0);
print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
|
---|
In Section
Seekers of Perl Wisdom