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