On Wed, 22 Aug 2001, Mike V. Andreev wrote:
> Возможно вопрос немного офтопик. Но все-таки может кто знает.
>
>
> http://perl.apache.org/src/mod_perl.html#mod_perl_and_mod_include_integra :
> =============================================
> mod_perl and mod_include integration
> As of apache 1.2.0, mod_include can handle Perl callbacks.
> A `sub' key value may be anything a Perl*Handler can be: subroutine name,
> package name (defaults to package::handler), Class->method call or
> anonymous sub {}
>
>
> Example:
> Child <!--#perl sub="sub {print $$}" --> accessed
> <!--#perl sub="sub {print ++$Access::Cnt }" --> times. <br>
> <!--#perl sub="Package::handler" arg="one" arg="two" -->
> =============================================
>
> делаем test.shtml:
> ==============================
> Perl is <!--#perl sub="sub {for (0..10) {print \"very \"}}"--> fun to use!
> <hr>
> Child <!--#perl sub="sub {print $$}" --> accessed
> <!--#perl sub="sub {print ++$Access::Cnt }" --> times. <br>
> ==============================
>
> В результате в логах имеем:
> [Wed Aug 22 16:55:12 2001] [error] [client ...] unknown directive "perl" in parsed doc /full/path/test.shtml
>
> и в броузере соответственно:
> [an error occurred while processing this directive]
>
> Видимо что-то нужно подкрутить в настройках apache.
> Ткните носом, pls...
>
> (FreeBSD 4.3)
> Apache/1.3.20
> mod_perl 1.26
> и то и другое из пакеджа.
> может дело в этом и чтобы фича работала нужно пересобирать все из
> дистрибутива?
А в httpd.conf LoadModule perl_module тра-ля-ля есть ?
Игорь Сысоев
=============================================================================
= Apache-Talk@xxxxxxxxxxxxx mailing list =
Mail "unsubscribe apache-talk" to majordomo@xxxxxxxxxxxxx if you want to quit.
= Archive avaliable at http://www.lexa.ru/apache-talk =
"Russian Apache" includes software developed
by the Apache Group for use in the Apache HTTP server project
(http://www.apache.org/) See
Apache LICENSE.
Copyright (C) 1995-2001 The Apache Group. All rights reserved.
Copyright (C) 1996 Dm. Kryukov; Copyright (C)
1997-2009 Alex Tutubalin. Design (C) 1998 Max Smolev.