in reply to Re: Re^2: Passing filehandles to subroutines
in thread Passing filehandles to subroutines

I don't see why the same approach wouldn't be applicable in that case if you do it right. Have you tried something like the following?
open PODHTMLFH, ">&=STDOUT" or die "Can't dup STDOUT\n"; # or even more generically open PODHTMLFH, ">&=".fileno(STDOUT) or die "Can't dup STDOUT\n";
Temporary files are icky.

Makeshifts last the longest.

Replies are listed 'Best First'.
Re: Re^4: Passing filehandles to subroutines
by rdfield (Priest) on Feb 17, 2003 at 16:14 UTC
    Eh? How does my program dup'ing STDOUT force Pod::HTML's open HTML,">-"; to print to mod_perl's tied default filehandle?

    (and yes, temporary files are very icky indeed)

    rdfield

      Ah, I see. Well, your case is a valid use of this as a workaround for an apparently sloppily written module, but the emphasis here is on "sloppily written".

      Makeshifts last the longest.