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