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};
33 Carp::carp("Squirrel is deprecated. Please use Any::Moose instead. It fixes a number of design problems that Squirrel has.");
34 goto $_[0]->_handlers->{import};
38 goto $_[0]->_handlers->{unimport};
49 Squirrel - Use L<Mouse>, unless L<Moose> is already loaded.
61 L<Squirrel> is being deprecated. L<Any::Moose> provides the same functionality,
66 L<Moose> and L<Squirrel> are TEH BEST FRENDS, but if L<Moose> isn't there
67 L<Squirrel> will hang out with L<Mouse> as well.
69 When your own code doesn't actually care whether or not you use L<Moose> or
70 L<Mouse> you can use either, and let your users decide for you.
72 This lets you run with minimal dependencies and have a faster startup, but if
73 L<Moose> is already in use you get all the benefits of using that
74 (transformability, introspection, more opportunities for code reuse, etc).