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

Just stupid idea: Can you show the code piece containing calling of that 'new' method?

Update:

I suspect something like

use MyClass; my $obj = MyClass::new('MyBlass');
  • Comment on Re: SUPER delegation fails because class name getting munged (somehow?)
  • Download Code

Replies are listed 'Best First'.
Re^2: SUPER delegation fails because class name getting munged (somehow?)
by bpphillips (Friar) on Feb 23, 2011 at 16:19 UTC

    Sure, it's very straightforward:

    $c->stash->{constant} = MyCompany::Pages::TemplateConstants->new($arg) +; # this is in Catalyst
      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).