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;
34 goto $_[0]->_handlers->{import};
38 goto $_[0]->_handlers->{unimport};
49 Squirrel - Use L<Mouse>, unless L<Moose> is already loaded.
61 L<Moose> and L<Squirrel> are TEH BEST FRENDS, but if L<Moose> isn't there
62 L<Squirrel> will hang out with L<Mouse> as well.
64 When your own code doesn't actually care whether or not you use L<Moose> or
65 L<Mouse> you can use either, and let your users decide for you.
67 This lets you run with minimal dependencies and have a faster startup, but if
68 L<Moose> is already in use you get all the benefits of using that
69 (transformability, introspection, more opportunities for code reuse, etc).