use Pod::Simple::HTML; my $p = Pod::Simple::HTML->new; $p->output_string(\my $html); ## assuming $pod_snippet already exists $p->parse_string_document($pod_snippet);