Actually unshift curried args into @_
Dave Rolsky [Wed, 15 Sep 2010 17:03:36 +0000 (12:03 -0500)]
lib/Moose/Meta/Method/Accessor/Native/Array.pm

index 0380f59..fb249b7 100644 (file)
@@ -17,7 +17,7 @@ sub _inline_curried_arguments {
 
     return q{} unless @{ $self->curried_arguments };
 
-    return "\@_ = ( \@curried, \@_ );";
+    return 'unshift @_, @curried;'
 }
 
 sub _inline_check_constraint {