X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=lib%2FSquirrel.pm;h=bbbad760cb3bfb37cdda36c22e9893cb7d1d8b7e;hp=a9e4024dadc1e50890a4398dcd10d5edc87b46ba;hb=31c5194bc6a176cec4de515163d27f174eba5c9b;hpb=382b73403849d7883496723918c10acf129e3a9d diff --git a/lib/Squirrel.pm b/lib/Squirrel.pm index a9e4024..bbbad76 100644 --- a/lib/Squirrel.pm +++ b/lib/Squirrel.pm @@ -26,7 +26,7 @@ sub _handlers { my $caller = caller(1); - $pkgs{$caller} ||== $class->_choose_backend; + $pkgs{$caller} ||= $class->_choose_backend; } sub import { @@ -52,11 +52,11 @@ __END__ =head1 NAME -Squirrel - Use L, unless L is already loaded. +Squirrel - Use Mouse, unless Moose is already loaded. (DEPRECATED) =head1 SYNOPSIS - use Squirrel; + use Squirrel; has goggles => ( is => "rw", @@ -64,12 +64,12 @@ Squirrel - Use L, unless L is already loaded. =head1 DEPRECATION -L is deprecated. L provides the same functionality, +C is deprecated. C provides the same functionality, but better. :) =head1 DESCRIPTION -L and L are TEH BEST FRENDS, but if L isn't there +L and L are THE BEST FRIENDS, but if L isn't there L will hang out with L as well. When your own code doesn't actually care whether or not you use L or @@ -79,6 +79,10 @@ This lets you run with minimal dependencies and have a faster startup, but if L is already in use you get all the benefits of using that (transformability, introspection, more opportunities for code reuse, etc). +=head1 SEE ALSO + +L + =cut