6 if ( $INC{"Moose.pm"} ) {
8 import => \&Moose::import,
9 unimport => \&Moose::unimport,
14 import => \&Mouse::import,
15 unimport => \&Mouse::unimport,
25 my $caller = caller(1);
27 $pkgs{$caller} = $class->_choose_backend
28 unless $pkgs{$caller};
32 goto $_[0]->_handlers->{import};
36 goto $_[0]->_handlers->{unimport};
47 Squirrel - Use L<Mouse>, unless L<Moose> is already loaded.
59 L<Squirrel> is being deprecated. L<Any::Moose> provides the same functionality,
64 L<Moose> and L<Squirrel> are TEH BEST FRENDS, but if L<Moose> isn't there
65 L<Squirrel> will hang out with L<Mouse> as well.
67 When your own code doesn't actually care whether or not you use L<Moose> or
68 L<Mouse> you can use either, and let your users decide for you.
70 This lets you run with minimal dependencies and have a faster startup, but if
71 L<Moose> is already in use you get all the benefits of using that
72 (transformability, introspection, more opportunities for code reuse, etc).