use Pod::HtmlEasy ;
my $podhtmleasy = Pod::HtmlEasy->new(
on_L => sub {
my ( $this , $L , $text, $page , $section, $type ) = @_ ;
if ( $type eq 'pod' ) {
$section = "#$section" if $section ne '' ;
return "$text" ;
}
elsif( $type eq 'man' ) { return "$text" ;}
elsif( $type eq 'url' ) { return "$text" ;}
} ,
}
my $html = $podhtmleasy->pod2html('test.pod' , 'test.html') ;