my $pshtml = Pod::Simple::HTML->new; $pshtml->output_string( \$somestring ); $pshtml->parse_file($modfile);