"use" etiquette in mod_perl

[prev] [thread] [next] [Date index for 2004/11/13]

From: Mark S Lowe
Subject: "use" etiquette in mod_perl
Date: 21:56 on 13 Nov 2004
--B_3183198967_9705515
Content-type: text/plain;
	charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable

Quick performance question: Will it kill performance to make sub routines i=
n
mod_perl call all their own use statements? For instance, I have several su=
b
routines that need to query $q->param(foo), and I=B9m curious if I should
create a single instance of $q and pass it into all the respective sub
routines, or if it=B9s okay to have each method create their own $q =3D new CGI=
;
instance.=20

Just checking. Thanks!

Mark

--B_3183198967_9705515
Content-type: text/html;
	charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable

<HTML>
<HEAD>
<TITLE>&quot;use&quot; etiquette in mod_perl</TITLE>
</HEAD>
<BODY>
<FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:12.0px'><B>Qu=
ick performance question</B>: Will it kill performance to make sub routines =
in mod_perl call all their own use statements? For instance, I have several =
sub routines that need to query $q-&gt;param(foo), and I&#8217;m curious if =
I should create a single instance of $q and pass it into all the respective =
sub routines, or if it&#8217;s okay to have each method create their own $q =
=3D new CGI; instance. <BR>
<BR>
Just checking. Thanks!<BR>
<BR>
Mark</SPAN></FONT>
</BODY>
</HTML>


--B_3183198967_9705515--


"use" etiquette in mod_perl
Mark S Lowe 21:56 on 13 Nov 2004

Re: "use" etiquette in mod_perl
Stas Bekman 03:52 on 14 Nov 2004

Re: "use" etiquette in mod_perl
Stas Bekman 23:11 on 14 Nov 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52