As it's not used for much else, PLP::CGI can simply start running on
import. So like PLP::FastCGI, the executable only needs to C<use PLP::CGI>
(and C<require> for advanced usage).
No backwards compatibility issues, as the last release didn't have this
modularized (PLP wrapper works the same as before).
return $data;
}
-# This is run by the CGI script. (#!perl \n use PLP::CGI; PLP::CGI::everything;)
sub everything {
PLP::clean();
$_[0]->init() and PLP::start();
}
+# This is run by the CGI script. (#!perl \n use PLP::CGI;)
+sub import {
+ $_[0]->everything();
+}
+
1;
# This script is not installed automatically, and is not needed for mod_perl
# installations.
-use PLP;
-PLP::everything();
-
+use PLP::CGI;