I am trying to run an script using Apache::Include, and I can't get it
to accept arguments.  Here is what I've tried:

This works fine (no args passed)

<!--#perl sub="Apache::Include" arg="/path/to/script.pl" -->

Here the args are ignored:

<!--#perl sub="Apache::Include" arg="/path/to/script.pl" arg="arg1"
arg="arg2" -->

These return nothing:

<!--#perl sub="Apache::Include" arg="/path/to/script.pl arg1 arg2" -->

<!--#perl sub="Apache::Include" arg="/path/to/script.pl\?arg1\&arg2"
-->

This works fine using regular mod_include syntax:

<!--#exec cmd="/path/to/script.pl arg1 arg2" -->

As far as I understand, using Apache::Include is preferable over
mod_include for memory and performance reasons, but how does it accept
arguments?

Also, <!--#exec cmd= seems more flexible than <!--#include virtual=.
Is there any reason to use one over the other?

Thanks!

Moshe

-----------------------------------------------------------------------------
Moshe Linzer                     | Mastery of Unix offers real freedom.
Unix Systems Manager             | The price of freedom is always dear, but
National Semiconductor, Israel   | I'd rather pay for my freedom than live in
Phone: 972-9-970-2247            | a bitmapped, pop-up-happy dungeon like NT.
Fax: 972-9-970-2001              |
Email: [EMAIL PROTECTED]            |             - Thomas Scoville, Unix Review
-----------------------------------------------------------------------------

Reply via email to