On Feb 18, 2010, at 7:54 AM, Amit Jha wrote:
> Hi,
>
> I have the following 2 class structure. I am unable to access the $c in
> get_name subroutine called from subroutine site_name of
> 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
Just pass $c as an argument to the subroutine call.
$name = $obj->get_name($c);
- john romkey
http://www.romkey.com/
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/