@@ -3373,15 +3373,18 @@ sub htmlify_pods {
33733373 : $self -> original_prefix(' core' );
33743374
33753375 my $htmlroot = $self -> install_sets(' core' )-> {libhtml };
3376- my @podpath = ( (map { File::Spec-> abs2rel($_ ,$podroot ) } grep { -d }
3377- ( $self -> install_sets(' core' , ' lib' ), # lib
3378- $self -> install_sets(' core' , ' bin' ), # bin
3379- $self -> install_sets(' site' , ' lib' ), # site/lib
3380- ) ), File::Spec-> rel2abs($self -> blib) );
3376+ my $podpath ;
3377+ unless (defined $self -> args(' html_links' ) and !$self -> args(' html_links' )) {
3378+ my @podpath = ( (map { File::Spec-> abs2rel($_ ,$podroot ) } grep { -d }
3379+ ( $self -> install_sets(' core' , ' lib' ), # lib
3380+ $self -> install_sets(' core' , ' bin' ), # bin
3381+ $self -> install_sets(' site' , ' lib' ), # site/lib
3382+ ) ), File::Spec-> rel2abs($self -> blib) );
33813383
3382- my $podpath = $ENV {PERL_CORE }
3383- ? File::Spec-> catdir($podroot , ' lib' )
3384- : join (" :" , map { tr , :\\, |/, ; $_ } @podpath );
3384+ $podpath = $ENV {PERL_CORE }
3385+ ? File::Spec-> catdir($podroot , ' lib' )
3386+ : join (" :" , map { tr , :\\, |/, ; $_ } @podpath );
3387+ }
33853388
33863389 my $blibdir = join (' /' , File::Spec-> splitdir(
33873390 (File::Spec-> splitpath(File::Spec-> rel2abs($htmldir ),1))[1]),' '
@@ -3431,7 +3434,7 @@ sub htmlify_pods {
34313434 my $depth = @rootdirs + @dirs ;
34323435 my %opts = ( infile => $infile ,
34333436 outfile => $tmpfile ,
3434- podpath => $podpath ,
3437+ ( defined ( $ podpath) ? ( podpath => $podpath ) : ()) ,
34353438 podroot => $podroot ,
34363439 index => 1,
34373440 depth => $depth ,
@@ -3451,7 +3454,7 @@ sub htmlify_pods {
34513454
34523455 my @opts = (
34533456 " --title=$title " ,
3454- " --podpath=$podpath " ,
3457+ ( defined ( $podpath ) ? " --podpath=$podpath " : ()) ,
34553458 " --infile=$infile " ,
34563459 " --outfile=$tmpfile " ,
34573460 " --podroot=$podroot " ,
0 commit comments