| Overview
 Download
 Installation
 Docs
 Tutorial
 Credits
 
 Page Source
 
 Hosted by:
 Convolution
 
 | Source of template.plp Back
 
<(template.plp)>
Choose: <br>
<:
BEGIN { $title = 'Documentation'; }
print map qq{• <a href="pod.plp?document=$_">$_</a><br>},
    qw/PLP PLP::Functions PLP::Fields PLP::FAQ PLP::HowTo/;
my %commands = (
    head1   => '<h1>%</h1>',
    head2   => '<h2>%</h2>',
    over    => '<ul>',
    back    => '</ul>',
    item    => '<li><b>%</b></li>',
);
my %markup = (
    B            => '<b>%</b>',
    E            => '&%;',
    C            => '<b><tt>%</tt></b>',
    L            => '<i>%</i>',
);
$get{document} ||= 'PLP';
{
    my $dir = (glob 'files/PLP-*/lib')[-1];
    $get{document} =~ s/[^\w:]//g;
    $get{document} =~ s!::!/!g;
    my $file = glob("$dir/$get{document}.p*") or last;
    my $pod = ReadFile $file;
    ($pod) = join '', $pod =~ /^=.*?\n=cut\b/smg;
    $pod =~ s(([A-Z])<{$_} (.*?) >{$_}){
        my $html = $markup{$1} || '%';
        my $t = $2;
        $t =~ s/(\W)/'&#' . ord($1) . ';'/ge;
        $t =~ s/	/' ' x 8/ge;
        $t =~ s/ / /g;
        $html =~ s/%/$t/;
        $html;
    }gem for reverse 2..6;
    $pod =~ s(L<([^>]*)>){
        my $t = $1;
        $t =~ /^PLP/ ? qq{<a href="pod.plp?document=$t">$t</a>} : $t;
    }gem;
    $pod =~ s(([A-Z])<([^/][^>]*)>){
        my $html = $markup{$1} || '%';
        my $t = $2;
        $t =~ s/(\W)/'&#' . ord($1) . ';'/ge;
        $t =~ s/	/' ' x 8/ge;
        $t =~ s/ / /g;
        $html =~ s/%/$t/;
        $html;
    }gem;
    $pod =~ s(^=(\w+)[ \t]*(.*)){
        my $html = $commands{$1} || '<div>%</div>';
        my $t = $2;
        $t =~ s/^\*//;
        $html =~ s/%/$t/;
        $html;
    }gem;
    $pod =~ s/^$/<p>/gm;
    $pod =~ s(^([ \t].*)){
        my $t = $1;
        $t =~ s/(\W)/'&#' . ord($1) . ';'/ge;
        $t =~ s/	/' ' x 8/ge;
        $t =~ s/ / /g;
        '<tt>' . $t . '</tt><br>';
    }gem;
    print AutoURL($pod);
}
:>
 
 |  |