Let's imagine that I do this http { set $a 2; perl_set $x sub { return $a++; } } I don't think I can do this. Is there away around this to provide that functionality? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,120809,120809#msg-120809