<br>How did you declare %Foo?&nbsp; If you used 'my' or 'local', %Free
won't be in the namespace for the inherited class.&nbsp; Make sure you are
using 'our'.<br><div><span class="sg"><br>Brett<br><br>PS&nbsp; Sorry, Josh, didn't mean to send that to only you.<br></span></div><br><div><span class="gmail_quote">On 5/24/06, <b class="gmail_sendername">Chris</b> &lt;<a href="mailto:cpj1@visi.com">
cpj1@visi.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Okay, I have 2 classes, one being a subclass of the other.
<br><br>package A<br><br>sub foo {<br>return;<br>}<br><br>package B<br>use base(A);<br><br><br>Package A has a subroutine that *should* manipulate a variable in the<br>namespace of the involking object.<br><br>That is, if B is a subclass of A, and B has %Foo, the subroutine in A
<br>should manipulate %B:Foo.<br><br>However, my attempt at an indirect reference is failing.<br><br>$class=ref($object)<br>$var=$class.&quot;::Foo&quot;;<br><br>foreach $k (keys(%{$var}))<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# do stuff<br>}<br>
<br>I'm stuck with perl 5.8.0 on this one.<br><br>Any ideas what I'm screwing up?<br><br>--------------------<br>Christopher Josephes<br><a href="mailto:cpj1@visi.com">cpj1@visi.com</a><br>_______________________________________________
<br>Mpls-pm mailing list<br><a href="mailto:Mpls-pm@pm.org">Mpls-pm@pm.org</a><br><a href="http://mail.pm.org/mailman/listinfo/mpls-pm">http://mail.pm.org/mailman/listinfo/mpls-pm</a><br></blockquote></div><br>