complicated expressions can't be dereferenced directly
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / Hash / is_empty.pm
index 8f886b6..2de1604 100644 (file)
@@ -20,7 +20,7 @@ sub _return_value {
     my $self        = shift;
     my $slot_access = shift;
 
-    return "scalar keys \%{ $slot_access } ? 0 : 1";
+    return "scalar keys \%{ ($slot_access) } ? 0 : 1";
 }
 
 no Moose::Role;