in reply to printing to STDOUT and a Logfile
perl -e 'print "Hello\n";' | tee logfile [download]
perl -e 'print "Hello\n;' >& logfile [download]