Nicholas, Thanx to you too for the quick response.
> This really has nothing to do Moose per se, but it is a problem with > MooseX::Declare. Back at 5.11.2 Zefram introduced changes into perl core that > basically broke Devel::Declare modules. The work around is to use ugly K&R > brace style. Yes the white space after method arguments/traits/etc and before > the opening brace is significant until this is fixed. TL;DR: newlines after > method declarations before the brace breaks MXD. > > Hope this helps. Right, I knew it wasn't specifically to do with Moose, since removing MooseX::Declare altogether fixed it. But I really thought Mason was involved somehow, which appears not be the case. Weird. Is there something you can point me at which explains the perl core changes you're talking about? Just in case I get a wild hare up my ass and decide to look at how to fix the problem. :) I also can't help but wonder if this is related to one of my very first posts on this list, which had to do with trying to slip comments into the middle of Devel::Declare-parsed text. Although that's reproducible on all perl versions I've tried it on, so probably not directly related, but it's got to be in the same part of the code, right? Just in case I were to get _really_ ambitious and try to kill two birds with one stone. :-D > Come join us on irc://irc.perl.org/#devel-declare and bug people there to get > this fixed. Honestly, I'm not much of an IRC person, but maybe if I really do end up staring at the code for a few hours, that'll be a good place to go and ask for help. Thanx for the tips, guys. -- Buddy
