I hope I'm permitted a unix perl question here. :-) I have an sgml file that I am processing with a perl script. The file contains information that needs to be written out to two separate files. While the script runs, it reads the output from an sgml parser and writes the output to either file1 or file2 and sometimes to both. I have tried forking a process to tee, but that puts the same content in both file1 and file2. If I include both files in the same open statement, only one of the files is written to. I've been poring over the Camel and Cookbook this afternoon, and I'm about to try putting the filehandles in an array (though I'm not exactly sure how the open would work), but I thought I'd ask here to see if anyone has a chunk of code that I could borrow which deals with this issue. Many thanks in advance. pf ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch