<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Feb 18, 2010, at 7:54 AM, Amit Jha wrote:</div><blockquote type="cite"><table cellspacing="0" cellpadding="0" border="0" style="position: static; z-index: auto; "><tbody><tr><td valign="top" style="font: inherit;">Hi,<br><br>I have the following 2 class structure. I am unable to access the $c in get_name subroutine called from subroutine site_name of&nbsp; Myapp::Controller::Sites::Configuration. Can anyone help, how can I access the $c if I am call a subroutine directly not by dispatching the call<br></td></tr></tbody></table></blockquote></div><div><br></div><div>Just pass $c as an argument to the subroutine call.</div><div><br><div><table cellspacing="0" cellpadding="0" border="0" style="position: static; z-index: auto; "><tbody><tr><td valign="top" style="font: inherit; ">$name = $obj-&gt;get_name($c);<br></td></tr></tbody></table></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>- john romkey</div><div><span class="Apple-tab-span" style="white-space:pre">        </span><a href="http://www.romkey.com/">http://www.romkey.com/</a></div><div><br></div></div></body></html>