gnu@perl has asked for the wisdom of the Perl Monks concerning the following question:
I have a situation where a program sends notifications in a number of methods (STDOUT, mailx, to a log file). Any one of a any combination of methods could be selected for the output under various circumstances.
What I was wondering is if I could use one print statement and specify multiple file handles to direct the print to?
I do realize that I could put the file handles into and array and loop over it, but I want to know if there is truly a way to do it with one execution of one command. Thanks.
Back to
Seekers of Perl Wisdom