<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br><hr id="stopSpelling">From: jeremygwa@hotmail.com<br>To: tyler@yi.org<br>Subject: RE: [VPM] FW: overriding perl 'our','my' keywords<br>Date: Tue, 17 Mar 2009 16:17:29 -0700<br><br>



<style>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass body.EC_hmmessage
{font-size:10pt;font-family:Verdana;}
</style>


<br>I would like to use 'my', but I need 'our', because the I would like to be able to modifiy the variable outside the static class, so I have to use 'our' to make it public.<br><br>-Jeremy<br><br><br><br>&gt; Date: Tue, 17 Mar 2009 16:12:22 -0700<br>&gt; From: tyler@yi.org<br>&gt; To: jeremygwa@hotmail.com<br>&gt; CC: darren@darrenduncan.net; victoria-pm@pm.org<br>&gt; Subject: Re: [VPM] FW: overriding perl 'our','my' keywords<br>&gt; <br>&gt; Jer,<br>&gt; <br>&gt;         "my" variables should be cleared between requests, since<br>&gt; ModPerl::Registry wraps your code inside a subroutine.<br>&gt; <br>&gt;         For "our" variables -- you may want to consider converting the ones<br>&gt; you are concerned about to "my"'s... that is really what scoping is designed<br>&gt; for. :-)<br>&gt; <br>&gt;                 - Tyler<br>&gt; <br>&gt; <br>&gt; Jer A &lt;jeremygwa@hotmail.com&gt; wrote:<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; I know this, but I am using modperl, and do not want to use any of the api or modules eg.<br>&gt; &gt; <br>&gt; &gt; because of modperl, scalers have to be cleared between connections.<br>&gt; &gt; <br>&gt; &gt; I would like make  my cgi script, compatible with modperl, without hardly changing code.<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; -Jeremy<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; &gt; Date: Tue, 17 Mar 2009 16:01:54 -0700<br>&gt; &gt; &gt; From: darren@darrenduncan.net<br>&gt; &gt; &gt; To: victoria-pm@pm.org<br>&gt; &gt; &gt; Subject: Re: [VPM] FW: overriding perl 'our','my' keywords<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; Jer A wrote:<br>&gt; &gt; &gt; &gt; I want to override all 'our' and all 'my' statements in a script. how do <br>&gt; &gt; &gt; &gt; i do this, without any third party modules, just code.<br>&gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; this may sound funny, but I would like to initialize all declared <br>&gt; &gt; &gt; &gt; variables to 'undef' or '()'.<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; Perl variables are already that way by default, so you have nothing to do.<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; Otherwise, you need to give more information on what you actually want to <br>&gt; &gt; &gt; accomplish.<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; -- Darren Duncan<br>&gt; &gt; &gt; _______________________________________________<br>&gt; &gt; &gt; Victoria-pm mailing list<br>&gt; &gt; &gt; Victoria-pm@pm.org<br>&gt; &gt; &gt; http://mail.pm.org/mailman/listinfo/victoria-pm<br>&gt; &gt; <br>&gt; &gt; _________________________________________________________________<br>&gt; &gt; Chat with the whole group, and bring everyone together.<br>&gt; &gt; http://go.microsoft.com/?linkid=9650735<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Victoria-pm mailing list<br>&gt; &gt; Victoria-pm@pm.org<br>&gt; &gt; http://mail.pm.org/mailman/listinfo/victoria-pm<br>&gt; <br>&gt; -- <br><br><hr>Make your Messenger window look the way you want.  <a href="http://go.microsoft.com/?linkid=9650733">Express Yourself!</a><br /><hr />Tell the whole story with photos, right from your Messenger window.  <a href='http://go.microsoft.com/?linkid=9650732' target='_new'>Learn how!</a></body>
</html>