PLP
view release on metacpan or search on metacpan
PLP::Backend::CGI->everything();
}
sub handler {
require PLP::Backend::Apache;
PLP::Backend::Apache::handler(@_);
}
# Sends the headers waiting in %PLP::Script::header
sub sendheaders () {
local $\; # reset print behaviour if triggered by say()
$PLP::sentheaders ||= [ caller 1 ? (caller 1)[1, 2] : (caller)[1, 2] ];
print STDOUT "Content-Type: text/plain\n\n" if $PLP::DEBUG & 2;
while (my ($header, $values) = each %PLP::Script::header) {
print STDOUT "$header: $_\n" for split /\n/, $values;
}
print STDOUT "\n";
}
{
my %cached; # Conceal cached sources: ( path => [ [ deps ], source, -M ] )
lib/PLP/Functions.pm view on Meta::CPAN
our @EXPORT = qw/Entity DecodeURI EncodeURI Include include PLP_END
EscapeHTML
AddCookie ReadFile WriteFile AutoURL Counter exit/;
sub Include ($) {
no strict;
$PLP::file = $_[0];
$PLP::inA = 0;
$PLP::inB = 0;
local $@;
eval 'package PLP::Script; no warnings; ' . PLP::source($PLP::file, 0, join ' ', (caller)[2,1]);
if ($@) {
PLP::Functions::exit() if $@ =~ /\cS\cT\cO\cP/;
PLP::error($@, 1);
}
}
sub include ($) {
goto &Include;
}
( run in 1.257 second using v1.01-cache-2.11-cpan-a3c8064c92c )