NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Moose Notes (Score:2)
I wasn't aware that the extends needs to be in a BEGIN block unless you really do have code which needs to happen at BEGIN time. Am I wrong? (Could be).
Also, with accepts a list and using multiple with statements should be avoided unless you have a very, very good reason to do so. A single with statement is like this:
Using it like that gets you the method conflict resolution. Using separate with statements is not only overly verbose, but it composes each role in separate
Re:Moose Notes (Score:1)
You're not wrong. Extending the parent class needs to happen at compile time in Catalyst because as dagolden mentions elsewhere Catalyst choose once upon a time to support ... hence the BEGIN.
sub foo : Path(/) { }syntax. The nature of that syntax and how Perl goes about making it "work" requires your class hierarchy to be resolved at compile timeReply to This
Parent