in reply to printing to STDOUT and a Logfile
This is the way I do it. It my be too simple for all your logging needs.
... or If I also want to trap STDERR I do ...perl -e 'print "Hello\n";' | tee logfile
... but then again does logging need to be complicated?perl -e 'print "Hello\n;' >& logfile
|
---|
In Section
Seekers of Perl Wisdom