Fix a couple of aggregation warnings.
[catagits/Catalyst-Runtime.git] / t / aggregate / unit_core_plugin.t
index 03d16f6..11cef84 100644 (file)
@@ -11,9 +11,8 @@ use lib 't/lib';
 
     package Faux::Plugin;
 
-    sub new { bless {}, shift }
-    my $count = 1;
-    sub count { $count++ }
+    sub new { bless { count => 1 }, shift }
+    sub count { shift->{count}++ }
 }
 
 my $warnings = 0;