From modperl-return-63097-apmail-perl-modperl-archive=perl.apache.org@perl.apache.org Sat Dec 15 20:08:05 2012 Return-Path: X-Original-To: apmail-perl-modperl-archive@www.apache.org Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 194F9E12E for ; Sat, 15 Dec 2012 20:08:05 +0000 (UTC) Received: (qmail 20746 invoked by uid 500); 15 Dec 2012 20:08:04 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 20680 invoked by uid 500); 15 Dec 2012 20:08:03 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 20672 invoked by uid 99); 15 Dec 2012 20:08:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Dec 2012 20:08:03 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of chris002@bennettconstruction.us designates 64.85.161.47 as permitted sender) Received: from [64.85.161.47] (HELO bennettconstruction.us) (64.85.161.47) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Dec 2012 20:07:55 +0000 Received: from bennettconstruction.us (IDENT:chris002@localhost [127.0.0.1]) by bennettconstruction.us (8.14.5/8.14.5) with ESMTP id qBFK7ZBu029686 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sat, 15 Dec 2012 14:07:35 -0600 (CST) Received: (from chris002@localhost) by bennettconstruction.us (8.14.5/8.14.3/Submit) id qBFK7Zti002368 for modperl@perl.apache.org; Sat, 15 Dec 2012 14:07:35 -0600 (CST) Date: Sat, 15 Dec 2012 14:07:34 -0600 From: Chris Bennett To: modperl@perl.apache.org Subject: How best to get my mod_perl programs to run under CGI for non-mod_perl users? Message-ID: <20121215200734.GA31922@bennettconstruction.us> Reply-To: chris@bennettconstruction.us MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Checked: Checked by ClamAV on apache.org Everything I use/write is strictly mod_perl (mod_perl-1.31 under OpenBSD). I am planning on releasing some of this open-source, but many users will not be running mod_perl. What might be the easiest way to go backwards to CGI without a huge amount of work? Should I write something that makes $r->print(); work as print? I have read that CGI.pm and Apache::Request are similar but not the same. Is something already written to do this out there? A guide? These applications use: use Apache::Request(); use DBI(); All of these modules are using Apache::Registry, not handler. Thanks, Chris Bennett