On Sun, May 25, 2008 at 9:18 PM, Igor Sysoev &lt;<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>&gt; 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 &#39;jf&#39; Lim wrote:<br>
<br>
&gt; hi, folks, I&#39;ve been trying out the embedded perl feature with 0.6.31, and<br>
&gt; while there were initially some problems with getting it up, I&#39;ve managed to<br>
&gt; resolve just about everything. I do have some questions, though:<br>
&gt;<br>
&gt; 1. I&#39;ve been trying to get Perl SSI to work &quot;inline&quot; (eg. perl sub=&#39;{ my $r<br>
&gt; = shift; $r-&gt;print(time); }&#39; ), but so far that hasn&#39;t worked out at all.<br>
&gt; Must the perl sub always be defined elsewhere, in a &quot;.pm&quot; 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&#39;m not sure should it be enabled or not.<br>
<div class="Ih2E3d"></div></blockquote><div><br>ah, so that&#39;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>
&gt; 2. I notice that changes to the &quot;.pm&quot; files are not dynamic, or<br>
&gt; &quot;on-the-fly&quot;. You have to restart nginx in order for the changes to be<br>
&gt; 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>&#39;perl -V&#39; gives me<br>======<br>...<br>Characteristics of this binary (from libperl): <br>&nbsp; Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PERL_MALLOC_WRAP THREADS_HAVE_PIDS USE_64_BIT_ALL<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; USE_PERLIO USE_REENTRANT_API<br>...<br>========<br><br>so I&#39;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>&quot;It&#39;s so hard to write a graphics driver that open-sourcing it would not help.&quot;<br> -- Andrew Fear, Software Product Manager, NVIDIA Corporation<br>
<a href="http://kerneltrap.org/node/7228">http://kerneltrap.org/node/7228</a>