Hey, I appologize in advance also if this isn't a good place to ask perl/Mason questions.&nbsp; I prefer it over the higher volume Mason lists, but if this is the wrong place for it, I'd rather not step on people's toes.<br><br>
Anyway,&nbsp; I've got a perl module:<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">package Foo;</blockquote><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
<div><br>our $m =&nbsp; HTML::Mason::Request::instance;<br></div></blockquote><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">sub login_required<br>
{<br>&nbsp;&nbsp;&nbsp; unless ($m-&gt;session-&gt;{'userid'}) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $m-&gt;comp('login.mhtml');<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $m-&gt;abort;<br>&nbsp;&nbsp;&nbsp; }<br>}<br></blockquote><br>but this always fails saying that $m isn't instantiated.&nbsp; Everything works fine if I define the $m locally within each sub, but that gets annoying.&nbsp; I thought our should scope to the entire package.&nbsp; What's the propper way to take this on?
<br><br>Thanks<br>-d<br><br><br>-- <br>Dave Dash<br>612.670.0621<br>3555 Fremont Ave S, Mpls, MN 55408<br><a href="http://citybikemap.com/">http://citybikemap.com/</a><br><a href="http://davedash.com/">http://davedash.com/
</a><br>AIM: davesdash