On Sun, May 25, 2008 at 9:18 PM, Igor Sysoev <<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Sun, May 25, 2008 at 04:57:18PM +0800, Jeffrey 'jf' Lim wrote:<br>
<br>
> hi, folks, I've been trying out the embedded perl feature with 0.6.31, and<br>
> while there were initially some problems with getting it up, I've managed to<br>
> resolve just about everything. I do have some questions, though:<br>
><br>
> 1. I've been trying to get Perl SSI to work "inline" (eg. perl sub='{ my $r<br>
> = shift; $r->print(time); }' ), but so far that hasn't worked out at all.<br>
> Must the perl sub always be defined elsewhere, in a ".pm" file?<br>
<br>
</div>Yes, the code that allows SSI perl inlines are explicitly disabled at<br>
line 393 in src/http/modules/perl/ngx_http_perl_module.c for perfomance<br>
reasons. I'm not sure should it be enabled or not.<br>
<div class="Ih2E3d"></div></blockquote><div><br>ah, so that's what that was for then! I had a look through the code, but couldnt really figure this portion of the code out. Thanks!<br><br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br>
> 2. I notice that changes to the ".pm" files are not dynamic, or<br>
> "on-the-fly". You have to restart nginx in order for the changes to be<br>
> reflected. Is this intentional?<br>
<br>
</div>Yes, you need to reconfigure nginx (if perl was built with threads or<br>
multiplicty interpeters support) or to do online uprade (if perl is single<br>
interpeter). I simply do know how to test all involved files.<br>
<font color="#888888"></font></blockquote><div><br>Are you saying that I need to reconfigure nginx with a different set of options, or that the fault is with my perl setup, and that I should upgrade my perl, and then reconfigure nginx?<br>
<br>'perl -V' gives me<br>======<br>...<br>Characteristics of this binary (from libperl): <br> Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT<br> PERL_MALLOC_WRAP THREADS_HAVE_PIDS USE_64_BIT_ALL<br>
USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES<br> USE_PERLIO USE_REENTRANT_API<br>...<br>========<br><br>so I'm assuming here that my perl should be built with threads and multiplicity already?<br>
<br>-jf<br></div></div><br>--<br>In the meantime, here is your PSA:<br>"It's so hard to write a graphics driver that open-sourcing it would not help."<br> -- Andrew Fear, Software Product Manager, NVIDIA Corporation<br>
<a href="http://kerneltrap.org/node/7228">http://kerneltrap.org/node/7228</a>