<div class="gmail_quote">On Mon, Mar 23, 2009 at 3:24 PM, Mark Mertel <span dir="ltr"><<a href="mailto:mark.mertel@yahoo.com">mark.mertel@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: tahoma,new york,times,serif; font-size: 12pt;"><div></div>
<div>Globals are not recommended. You could make them package variables and declare them with 'my' or 'our', and then access them using the package name $Neo::Web::Session, or $Darley::Supers::CurrentUser when from outside the package.</div>
</div></div></blockquote><div><br>You are muddling several different things together there.<br><br>Complaining about "globals" and then recommending "our" is contradictory since "our" is used to declare a global variable.<br>
<br>Recommending "my" along with "using the package name" is bad advice since it won't work (you would be accessing different variables).<br><br>I'll leave the in-depth explaining of the differences between "lexical variables" and "package globals" to other sources, but those are the two choices. :)<br>
<br>Tye<br></div></div>