rsalz has asked for the wisdom of the Perl Monks concerning the following question:

pod2html reads/writes stdin/out. I want to invoke it many times from a script, where I prepare stdin and capture stdout for post-processing. Is there an easy way to do that without creating tmp files?

Replies are listed 'Best First'.
Re: wrap pod2html in a perl script
by Anonymous Monk on Aug 18, 2015 at 02:54 UTC
    Sure, just look inside, you'll see pod2html is the module Pod::Html , and if you look inside that you'll see it uses Pod::Simple::XHTML ...
    my $pshtml = Pod::Simple::HTML->new; $pshtml->output_string( \$somestring ); $pshtml->parse_file($modfile);
Re: wrap pod2html in a perl script
by Laurent_R (Canon) on Aug 18, 2015 at 20:02 UTC
    Which OS?

    Under Unix, a ksh or bash script should easily handle the requirement for you, but you could certainly do it in pure Perl.