in reply to Capturing output from Pod::Html to a scalar

Ideas? yes.
A good answer? no

The problem here is how to tie STDOUT to a variable, and i really don't know how to do that. However, you can always use 2 scripts to get the output of pod2html() into a variable, via backticks, opening a pipe, etc.

Don't forget, there is also pod2html, which comes with the standard dist (on *nix at least).

Now, if anybody knows how to capture STDOUT into a variable via tie, please let me know. ;)

jeffa

  • Comment on (jeffa) Re: Capturing output from Pod::Html to a scalar

Replies are listed 'Best First'.
Re: (jeffa) Re: Capturing output from Pod::Html to a scalar
by jj808 (Hermit) on Sep 07, 2001 at 20:12 UTC
    I originally thought about using backticks, however pod2html is in a different location on my home PC to the UNIX box at work so this would not be portable.

    If all else fails, I'll use a temporary file but I'm sure there's a better way.

    Many thanks,

    JJ