projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
6197a68
)
Don't turn hash into array when copying the old hash value
Dave Rolsky [Sat, 25 Sep 2010 20:00:15 +0000 (15:00 -0500)]
lib/Moose/Meta/Method/Accessor/Native/Hash/Writer.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Meta/Method/Accessor/Native/Hash/Writer.pm
b/lib/Moose/Meta/Method/Accessor/Native/Hash/Writer.pm
index
f9d808b
..
c6828e6
100644
(file)
--- a/
lib/Moose/Meta/Method/Accessor/Native/Hash/Writer.pm
+++ b/
lib/Moose/Meta/Method/Accessor/Native/Hash/Writer.pm
@@
-23,7
+23,7
@@
sub _new_values {'@values'}
sub _inline_copy_old_value {
my ( $self, $slot_access ) = @_;
- return '{ @{' . $slot_access . '} }';
+ return '{ %{' . $slot_access . '} }';
}
1;