good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Passing file handle to tee that goes into openby pjkang7 (Novice) |
on Nov 09, 2016 at 22:18 UTC ( [id://1175627]=perlquestion: print w/replies, xml ) | Need Help?? |
pjkang7 has asked for the wisdom of the Perl Monks concerning the following question: Hi, I'm trying to print to multiple file handles and I have found several examples However, when I tried to pass file handle to it, instead of file name, it fails to print. Here's several code that I tried which produces error
Error message I see are something like this:
Maybe I just have to use for loop to print to both file handles.... Easy way out, but I still would like to know where I've got it wrong :( Thanks for help!!
Back to
Seekers of Perl Wisdom
|
|