Subject: | env variables unreadable in compiled perl CGI |
Date: | Mon, 12 Sep 2011 05:42:41 -0400 |
To: | bug-B-C@rt.cpan.org |
From: | Glen Stewart <glen_stewart@associate.com> |
I have a simple CGI program written in perl, which is executed
frequently (per second). To avoid the CPU load from perl compiling,
I chose to use B-C (via perlcc: perlcc -o comment.cgi comment.pl).
The program is:
When I look at the Apache error log, where WARN output comes when the CGI is executed, the strings are empty. If I run the program without compiling, they are populated.
It seems environment variable handling in B-C compiled perl scripts is completely broken?
Please let me know if there is a way around this.
Thank you.
The program is:
Show quoted text
use DBI;
use CGI qw/:standard/;
my $cgi = new CGI;
$html=$cgi->request_method();
warn("CGI request is $html");
warn("ENV request is $ENV{'REQUEST_METHOD'}");
When I look at the Apache error log, where WARN output comes when the CGI is executed, the strings are empty. If I run the program without compiling, they are populated.
It seems environment variable handling in B-C compiled perl scripts is completely broken?
Please let me know if there is a way around this.
- Distribution name and version: Kubuntu Maverick
- Perl version: This is perl, v5.10.1 (*) built for x86_64-linux-gnu-thread-multi
- Operating System vendor and version: Linux hub 2.6.35-30-generic #56-Ubuntu SMP Mon Jul 11 20:01:08 UTC 2011 x86_64 GNU/Linux
Thank you.
-- Associate.com - THE Place to Associate! http://freegroups.net Is Your E-mail Group Here? See http://freegroups.net/faq/your-group-here.html