makepp
view release on metacpan or search on metacpan
Mpp/Text.pm view on Meta::CPAN
our $helpline ||= 'For general info, click on sidebar "Overview" or top tab "Documentation".';
$helpend .= " at http://makepp.sourceforge.net/\@BASEVERSION@/$pod.html\n$helpline\n";
$helpend .= "Or type \"man $pod\" or \"man makepp$extraman\".\n"
unless $noman;
#@@eliminate
}
$helpend =~ s/\@BASEVERSION\@/$BASEVERSION/;
our $opts ||= $pod;
print "\n";
open my $fh, '<', "$Mpp::datadir/pod/$opts.pod" or die $!;
my $opt = $/ = '';
my $found;
while( <$fh> ) { # skip to before 1st opt
$found = 1 if /Valid options are|^=head1 OPTIONS/;
last if $found && /^=over/;
}
while( <$fh> ) {
if( /^=over/ ) {
while( <$fh> ) { last if /^=back/ } # skip nested list
} elsif( /^=back/ ) {
last;
pod/html/html.pl view on Meta::CPAN
{
# Set the 'base' url for this file, so that we can use it
# as the location from which to calculate relative links
# to other files. If this is '', then absolute links will
# be used throughout.
$Htmlfileurl= "$Htmldir/" . substr( $Htmlfile, length( $Htmldir ) + 1);
}
# read the pod a paragraph at a time
warn "Scanning for sections in input file(s)\n" if $Verbose;
$/ = "";
my @poddata = <$pod>;
close $pod;
# be eol agnostic
for (@poddata) {
if (/\r/) {
if (/\r\n/) {
@poddata = map { s/\r\n/\n/g;
/\n\n/ ?
map { "$_\n\n" } split /\n\n/ :
( run in 0.605 second using v1.01-cache-2.11-cpan-49f99fa48dc )