Slash Boxes
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

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Regarding performance, you should try making the classes immutable, it gives a serious performance boost at runtime for only slightly more of a compile time cost.

    Your example has some syntax issues. To start with, "has" doesn't take a HASH-ref of options. Also, you are missing the "use Moose" line in ::Forum, so that ...

    package Wirebird::RESTful::Forum;
    extends 'Wirebird::RESTful';

    Should be ...

    package Wirebird::RESTful::Forum;
    use Moose;
    extends 'Wirebird::RESTful';

    As for what else is going on wit

    • The "use Moose" line is in ::Forum, actually. I elided a ton of stuff, and apparently got carried away there.

      And... oh, hey, you're right. Curly braces *again.* That's it, I'm switching my tty font from Courier New to... um... let's try Lucida Console.

      Interesting, though. W::R::Forum can play with the 'has' stuff just fine, curly braces and all. That was what threw me. And I just checked (with Lucida!) and all my other has's use parens just fine. And none of them use 'extends', which was why I figured that