Re: Printing to multiple file handles

2000-10-14 Thread Tom Heady
actually that is not entirely true. check out Local::TeeOutput here: http://jenda.krynicky.cz *** REPLY SEPARATOR *** On 10/13/2000 at 6:07 PM Robert Bresner wrote: >Howdy Shawn, > >You can't print to two filehandles at once, you'd have to do >it with two print statements. > >

Re: Printing to multiple file handles

2000-10-13 Thread Robert Bresner
Howdy Shawn, You can't print to two filehandles at once, you'd have to do it with two print statements. The alternative is to "dup" one handle to another handle, which you can do a la peanut butter and jelly sandwiches: # This dups STDERR to STDOUT so output redirection can come from o

Printing to multiple file handles

2000-10-13 Thread Jamison, Shawn
Is it possible to print to STDOUT and STDERR in one print statement? STDERR Has been redirected to a file and I was wondering if print STDOUT STDERR "This is what I want to print\n"; will work of if I need two print statements? Much Thanks in advance! Shawn J. _