X-Git-Url: http://git.shiar.net/perl/plp/.git/blobdiff_plain/4cbac41f4d1bef193cf955c6c854c8a9ed258119..55b5d8b2c5b2d13e40ed37f37ef54f0e1f37af4b:/plp.cgi diff --git a/plp.cgi b/plp.cgi old mode 100755 new mode 100644 index a16835c..aa3b32f --- a/plp.cgi +++ b/plp.cgi @@ -1,38 +1,9 @@ -#!/usr/local/bin/perl -use v5.6.0; -use PLP; -use strict; - -die 'Wrong module version' if $PLP::VERSION ne '3.06'; +#!/usr/bin/perl -{ - @PLP::END = (); - $PLP::code = ''; - $PLP::sentheaders = 0; - $PLP::inA = 0; - $PLP::inB = 0; - $PLP::DEBUG = 1; - delete @ENV{ grep /^PLP_/, keys %ENV }; -} +# This script is not installed automatically, and is not needed for mod_perl +# installations. -PLP::start(); +use PLP; +PLP::everything(); -{ - no strict; - PLP::Fields::doit(); - { - package PLP::Script; - *headers = \%header; - *cookies = \%cookie; - PLP::Functions->import(); - # No lexicals may exist at this point. - eval qq{ package PLP::Script; $PLP::code; }; - PLP::error($@, 1) if $@ and $@ !~ /\cS\cT\cO\cP/; - eval { package PLP::Script; $_->() for reverse @PLP::END }; - PLP::error($@, 1) if $@ and $@ !~ /\cS\cT\cO\cP/; - } - PLP::sendheaders() unless $PLP::sentheaders; - select STDOUT; - undef *{"PLP::Script::$_"} for keys %PLP::Script::; -}