[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    $r->args empty when called from an include
From:       Neil Kandalgaonkar <neil () stylus ! ca>
Date:       1999-05-29 20:03:04
[Download RAW message or body]

I'm trying to call a perl subroutine by include from within another
include. e.g.


index.html:
==========
<P><B>Args as seen from index.html:</B> <!--#perl sub="quux::display_args" -->

<!--#include virtual="foo.html" -->



foo.html:
=========
...
<P><B>Args as seen from foo.html:</B> <!--#perl sub="quux::display_args" -->
....


where quux::display_args formats and prints some stuff from $r->args.

Annoyingly, $r->args returns an empty list when called from foo.html. All
the other Apache methods seem to work, I see the unparsed arguments in
$r->as_string.

I assumed this had something to do with subrequests. But I tried using

my $main = $r->main; my %param = ($main->args);

and it did not change the results.



--
Neil Kandalgaonkar                             neil@stylus.ca
Systems Architect, Stylus Inc.           http://www.stylus.ca/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic