X-Git-Url: http://git.shiar.net/perl/plp/.git/blobdiff_plain/756d5de12d15296e7689a7c5c7b5e35bd0bccb0e..9ec2f267283338120825c68facb174496a4819b9:/PLP.pm?ds=sidebyside diff --git a/PLP.pm b/PLP.pm index 52fba51..e5988c6 100644 --- a/PLP.pm +++ b/PLP.pm @@ -1,8 +1,6 @@ package PLP; -# Not to be used without the CGI script; - -our $VERSION = '3.04'; +use 5.006; use PLP::Functions (); use PLP::Fields; @@ -10,174 +8,484 @@ use PLP::Tie::Headers; use PLP::Tie::Delay; use PLP::Tie::Print; -=head1 PLP +use File::Basename (); +use File::Spec; -None of the functions in this module should be called by PLP scripts. +use strict; -Functions: +our $VERSION = '3.19'; -=over 10 +# Subs in this package: +# _default_error($plain, $html) Default error handler +# clean Reset variables +# error($error, $type) Handle errors +# everything Do everything: CGI +# handler($r) Do everything: mod_perl +# sendheaders Send headers +# source($path, $level, $linespec) Read and parse .plp files +# start Start the initialized PLP script + +# The _init subs do the following: +# Set $PLP::code to the initial code +# Set $ENV{PLP_*} and make PATH_INFO if needed +# Change the CWD + +# This gets referenced as the initial $PLP::ERROR +sub _default_error { + my ($plain, $html) = @_; + print qq{
},
+ qq{Debug information: $html |
\n