http://qs321.pair.com?node_id=1004674


in reply to How to output backtick or qx to a variable and STDOUT at the same time?

What I suspect your tutor wants you to prove you understand is that assignment returns the value assigned on success.
Try the following
perl -e 'print $out=qx(ls );print "+" x 80 , "\n";print $out'
print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."