On Wed, 27 Sep 2000, Magnus Erixzon wrote:
>
> I am having some problems with Apache::Include.
> When I include more than one file with it, the httpd seg faults.
> The script can be as simple as this:
>
> #!/usr/bin/perl
> use Apache::Include ();
> print "Content-type: text/html\n\n";
> Apache::Include->virtual('/perl-bin/helloworld');
> Apache::Include->virtual('/perl-bin/helloworld');
it's been in the ToDo list for a while. in the meantime you can fix by
changing to:
#!/usr/bin/perl
use Apache::Include ();
my $r = shift;
print "Content-type: text/html\n\n";
Apache::Include->virtual('/perl-bin/helloworld', $r);
Apache::Include->virtual('/perl-bin/helloworld', $r);