<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br>so what people are saying, there is no way to override keywords 'our' or 'my'<br><br>optimally i would like something that follows this psuedo code<br><br>sub keyword {<br>($valueref) = @_;<br>call internal keyword with argument eg. my or our on valueref...dunno, but would i have to declare by val? <br>if $valueref is a string, clear it "",undef<br>if $valueref is an array or hash , clear it ()<br><br>}<br><br><br>> Date: Tue, 17 Mar 2009 16:27:18 -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: FW: overriding perl 'our','my' keywords<br>> <br>> Jer A <jeremygwa@hotmail.com> wrote:<br>> > I would like to use 'my', but I need 'our', because the I would like to be<br>> > able to modifiy the variable outside the static class, so I have to use<br>> > 'our' to make it public.<br>> <br>> Maybe re-think your encapsulation... you're trying to move from the<br>> assumption that a script goes away when you're done to the assumption that<br>> it sticks around forever.<br>> <br>> If you still want to be able to call the scripts from CGI, that shouldn't<br>> be too difficult while changing your object model to support re-entry -- but<br>> if you're just trying to move over to mod_perl as quickly as possible, i<br>> strongly suggest you slow down and put out the work to make it compatible<br>> instead of looking for hacky ways around best practices. :-)<br>> <br>>         Cheers,<br>>                 Tyler<br>> <br><br /><hr />Communicate, update and plan on Windows Live Messenger. <a href='http://go.microsoft.com/?linkid=9650731' target='_new'>Get started today.</a></body>
</html>