output(\*FILE,'testing
\n'); sub output { my ($fh,$msg) = @_; print $msg; print $fh $msg; }