projects
/
gitmo/Mouse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix which add-modifier method gets called
[gitmo/Mouse.git]
/
lib
/
Squirrel.pm
diff --git
a/lib/Squirrel.pm
b/lib/Squirrel.pm
index
de12906
..
fc8ea09
100644
(file)
--- a/
lib/Squirrel.pm
+++ b/
lib/Squirrel.pm
@@
-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 {