in reply to Re: SUPER delegation fails because class name getting munged (somehow?)
in thread SUPER delegation fails because class name getting munged (somehow?)

Sure, it's very straightforward:

$c->stash->{constant} = MyCompany::Pages::TemplateConstants->new($arg) +; # this is in Catalyst
  • Comment on Re^2: SUPER delegation fails because class name getting munged (somehow?)
  • Download Code

Replies are listed 'Best First'.
Re^3: SUPER delegation fails because class name getting munged (somehow?)
by pajout (Curate) on Feb 23, 2011 at 16:26 UTC
    It looks good, I suspect static '::new' style with somehow munged first arg, but 'MyClass::MySubClass->new($args)' should be equivalent to 'MyClass::MySubClass::new("MyClass::MySubClass",$args)' (if method 'new' is implemented in MySubClass).