perlperlperl has asked for the wisdom of the Perl Monks concerning the following question:

Can you pass the return value of a sub directly to the print function? The code below does not print the return value of func which is "123". In fact calling print that way seems to mess up my console; nothing further prints properly. So, can you pass a return value directly to print? If not what is the best way to do it? This is possible in C++ so I had a natural inclination to use it.
print func; sub func { return "123"; }