יובל קוג'מן (Yuval Kogman) > Mouse-0.04 > Squirrel

Download:
Mouse-0.04.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  6
Open  9
View/Report Bugs
Source   Latest Release: Mouse-2.2.0

NAME ^

Squirrel - Use Mouse, unless Moose is already loaded.

SYNOPSIS ^

        use Squirrel;

    has goggles => (
        is => "rw", 
    );

DESCRIPTION ^

Moose and Squirrel are TEH BEST FRENDS, but if Moose isn't there Squirrel will hang out with Mouse as well.

When your own code doesn't actually care whether or not you use Moose or Mouse you can use either, and let your users decide for you.

This lets you run with minimal dependencies and have a faster startup, but if Moose is already in use you get all the benefits of using that (transformability, introspection, more opportunities for code reuse, etc).

syntax highlighting: