Mouse::Util for pure-perl implementations of functions we depend on, in case the...
[gitmo/Mouse.git] / lib / Squirrel.pm
index 039b7e4..fc8ea09 100644 (file)
@@ -1,7 +1,5 @@
-#!/usr/bin/perl
-
+#!/usr/bin/env perl
 package Squirrel;
-
 use strict;
 use warnings;
 
@@ -27,7 +25,8 @@ sub _handlers {
 
     my $caller = caller(1);
 
-    $pkgs{$caller} ||= $class->_choose_backend;
+    $pkgs{$caller} = $class->_choose_backend
+        unless $pkgs{$caller};
 }
 
 sub import {
@@ -65,7 +64,8 @@ When your own code doesn't actually care whether or not you use L<Moose> or
 L<Mouse> you can use either, and let your users decide for you.
 
 This lets you run with minimal dependencies and have a faster startup, but if
-L<Moose> is already in use you get all the benefits of using that.
+L<Moose> is already in use you get all the benefits of using that
+(transformability, introspection, more opportunities for code reuse, etc).
 
 =cut