7 if ( $INC{"Moose.pm"} ) {
9 import => \&Moose::import,
10 unimport => \&Moose::unimport,
15 import => \&Mouse::import,
16 unimport => \&Mouse::unimport,
26 my $caller = caller(1);
28 $pkgs{$caller} = $class->_choose_backend
29 unless $pkgs{$caller};
33 goto $_[0]->_handlers->{import};
37 goto $_[0]->_handlers->{unimport};
48 Squirrel - Use L<Mouse>, unless L<Moose> is already loaded.
60 L<Moose> and L<Squirrel> are TEH BEST FRENDS, but if L<Moose> isn't there
61 L<Squirrel> will hang out with L<Mouse> as well.
63 When your own code doesn't actually care whether or not you use L<Moose> or
64 L<Mouse> you can use either, and let your users decide for you.
66 This lets you run with minimal dependencies and have a faster startup, but if
67 L<Moose> is already in use you get all the benefits of using that
68 (transformability, introspection, more opportunities for code reuse, etc).