Return-Path: Delivered-To: apmail-perl-embperl-archive@www.apache.org Received: (qmail 99630 invoked from network); 16 Feb 2005 10:08:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 16 Feb 2005 10:08:18 -0000 Received: (qmail 20323 invoked by uid 500); 16 Feb 2005 10:08:17 -0000 Delivered-To: apmail-perl-embperl-archive@perl.apache.org Received: (qmail 20304 invoked by uid 500); 16 Feb 2005 10:08:17 -0000 Mailing-List: contact embperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list embperl@perl.apache.org Received: (qmail 20289 invoked by uid 99); 16 Feb 2005 10:08:17 -0000 X-ASF-Spam-Status: No, hits=1.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from web86606.mail.ukl.yahoo.com (HELO web86606.mail.ukl.yahoo.com) (217.12.13.28) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 16 Feb 2005 02:08:15 -0800 Message-ID: <20050216100813.11985.qmail@web86606.mail.ukl.yahoo.com> Received: from [213.178.159.251] by web86606.mail.ukl.yahoo.com via HTTP; Wed, 16 Feb 2005 10:08:13 GMT Date: Wed, 16 Feb 2005 10:08:13 +0000 (GMT) From: Martin Moss Subject: Req_rec undefined when calling Embperl::Execute from within a mod_perl Method handler To: embperl@perl.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N All, I'm trying to call Embperl::Execute to run an epl from within a mod perl method handler, and when the script runs ---snip---- print STDERR Dumper($r); Embperl::Execute({ req_rec=>$r, inputfile=>'/www/components/nav/htmlhead.epl', param => [$config, $ad_tags], output => \$html }); -----snip----- $req_rec is undefined, ever since we upgraded from Embperl2.0b4dev5 to 2.0 release Candidate 2... The Dumper in the method handler results in the following $VAR1 = bless( { 'r' => bless( do{\(my $o = 27791880)}, 'Apache::Request' ) }, 'My::Apache::Request' ); But when I dump Req_rec in the epl, I get $VAR1=undef Under the first version, I didn't even have to set Req_rec - as the docs say this is no longer necessary. I just added it above to see if I could set it that way. Is there something I must do to set the Request object.. We use a custom one which I'd like to pass through to the epl script. I realise I could pass the Apache Request object through as a parameter, but that will make the epl rather untidy... And would seem to me to be a hack not a fix.. Can anybody shed any light on this? Regards Marty ___________________________________________________________ ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org For additional commands, e-mail: embperl-help@perl.apache.org