6 if ( $INC{"Moose.pm"} ) {
9 import => \&Moose::import,
10 unimport => \&Moose::unimport,
16 import => \&Mouse::import,
17 unimport => \&Mouse::unimport,
27 my $caller = caller(1);
29 $pkgs{$caller} ||= $class->_choose_backend;
34 Carp::carp("Squirrel is deprecated. Please use Any::Moose instead. It fixes a number of design problems that Squirrel has.");
36 my $handlers = shift->_handlers;
37 unshift @_, $handlers->{backend};
38 goto &{$handlers->{import}};
42 my $handlers = shift->_handlers;
43 unshift @_, $handlers->{backend};
44 goto &{$handlers->{unimport}};
55 Squirrel - Use Mouse, unless Moose is already loaded. (DEPRECATED)
67 C<Squirrel> is deprecated. C<Any::Moose> provides the same functionality,
72 L<Moose> and L<Squirrel> are THE BEST FRIENDS, but if L<Moose> isn't there
73 L<Squirrel> will hang out with L<Mouse> as well.
75 When your own code doesn't actually care whether or not you use L<Moose> or
76 L<Mouse> you can use either, and let your users decide for you.
78 This lets you run with minimal dependencies and have a faster startup, but if
79 L<Moose> is already in use you get all the benefits of using that
80 (transformability, introspection, more opportunities for code reuse, etc).