handle request automatically on PLP::CGI import
[perl/plp/.git] / PLP / CGI.pm
index 817a5523dd4af806dd829e4750210e61e1f70b05..1f46a3c9852954a25d1fc279da38aa56dbb42b37 100644 (file)
@@ -65,11 +65,15 @@ sub read ($) {
        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;