don't expect a list of data and a tail in case of an error
Robert 'phaylon' Sedlacek [Fri, 11 May 2012 19:01:58 +0000 (19:01 +0000)]
lib/System/Introspector/Sudoers.pm

index 89683d7..1351029 100644 (file)
@@ -42,6 +42,8 @@ sub _gather_files {
         }
         return \@result;
     };
+    return $file => $result
+        if ref $result eq 'HASH';
     return $file => @$result;
 }