Bump version
[catagits/DOM-Tiny.git] / lib / DOM / Tiny / _Collection.pm
index 44a1741..da649dd 100644 (file)
@@ -8,7 +8,7 @@ use Scalar::Util 'blessed';
 
 use constant REDUCE => ($] >= 5.008009 ? \&List::Util::reduce : \&_reduce);
 
-our $VERSION = '0.002';
+our $VERSION = '0.004';
 
 sub new {
   my $class = shift;
@@ -116,16 +116,16 @@ sub _reduce (&@) {
 
   no strict 'refs';
 
-  local(*{$caller."::a"}) = \my $a;
-  local(*{$caller."::b"}) = \my $b;
+  local(*{$caller."::a"}) = \my $x;
+  local(*{$caller."::b"}) = \my $y;
 
-  $a = shift;
+  $x = shift;
   foreach (@_) {
-    $b = $_;
-    $a = &{$code}();
+    $y = $_;
+    $x = $code->();
   }
 
-  $a;
+  $x;
 }
 
 sub _ref { ref $_[0] eq 'ARRAY' || blessed $_[0] && $_[0]->isa(__PACKAGE__) }