Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: How to output backtick or qx to a variable and STDOUT at the same time?by Utilitarian (Vicar) |
on Nov 20, 2012 at 08:39 UTC ( [id://1004674]=note: print w/replies, xml ) | Need Help?? |
What I suspect your tutor wants you to prove you understand is that assignment returns the value assigned on success. Try the following
print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
In Section
Seekers of Perl Wisdom
|
|