move _getglob def above strict for elegance
[gitmo/Role-Tiny.git] / lib / Moo / _Utils.pm
index 6bf8f22..82ecfcb 100644 (file)
@@ -1,12 +1,12 @@
 package Moo::_Utils;
 
+sub _getglob { \*{$_[0]} }
+
 use strictures 1;
 use base qw(Exporter);
 
 our @EXPORT = qw(_getglob _install_modifier _load_module _maybe_load_module);
 
-sub _getglob { no strict 'refs'; \*{$_[0]} }
-
 sub _install_modifier {
   my ($into, $type, $name, $code) = @_;