Welcome! Log In Create A New Profile

Advanced

Re: Questions about perl_set

August 16, 2010 02:08PM
On Mon, Aug 16, 2010 at 01:52:17PM -0400, evms wrote:

> Is there any way possible I can use perl_set within a Location
> directive?
>
>
> perl_set $test_transformation 'sub {
> my $r = shift;
> $result = list_rewrite::handler($r, "/test.asp");
> return $result;
> };';
>
> I have this within the HTTP directive.
>
> Will it be run each time a request comes in or only when
> $test_transformation is referenced?

Only when the variable is referenced.


--
Igor Sysoev
http://sysoev.ru/en/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Questions about perl_set

evms August 16, 2010 01:52PM

Re: Questions about perl_set

Igor Sysoev August 16, 2010 02:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 251
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready