Stories
Slash Boxes
Comments
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.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I would suggest either using Class::Trait, Perl6::Roles or Moose (more specifically Moose::Role). Both Class::Role and Class::Roles are fairly old, and not very robust. But to be honest,.. Roles might actually be overkill for what you are doing.

    But if you just want to define an interface, and not any implementation, you could use Class::Interfaces [cpan.org]. It makes it very easy to make a Java style interface without needing to make a bunch of .pm files.

    - Stevan