Re: [MP2] Can't dup STDOUT

2003-03-17 Thread Nick Tonkin
On Mon, 17 Mar 2003, Thomas Hilbig wrote: > I need to dup the STDOUT handle for a package > (Spreadsheet::WriteExcel) to work properly under > mod_perl. > The code below from the MP1 User documentation now > gives an error in MP2: > > use constant IS_MODPERL => $ENV{MOD_PERL}; > if (IS

[MP2] Can't dup STDOUT

2003-03-17 Thread Thomas Hilbig
I need to dup the STDOUT handle for a package (Spreadsheet::WriteExcel) to work properly under mod_perl. The code below from the MP1 User documentation now gives an error in MP2: use constant IS_MODPERL => $ENV{MOD_PERL}; if (IS_MODPERL) { tie *OUT, 'Apache'; } else {