projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
e144da7
)
Make sure potential value is a hash ref
Dave Rolsky [Sat, 25 Sep 2010 20:07:31 +0000 (15:07 -0500)]
lib/Moose/Meta/Method/Accessor/Native/Hash/set.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Meta/Method/Accessor/Native/Hash/set.pm
b/lib/Moose/Meta/Method/Accessor/Native/Hash/set.pm
index
97717cf
..
89b238b
100644
(file)
--- a/
lib/Moose/Meta/Method/Accessor/Native/Hash/set.pm
+++ b/
lib/Moose/Meta/Method/Accessor/Native/Hash/set.pm
@@
-47,7
+47,7
@@
sub _adds_members { 1 }
sub _potential_value {
my ( $self, $slot_access ) = @_;
- return "%{ $slot_access, \@_ }";
+ return "{ %{ $slot_access }, \@_ }";
}
sub _new_members { '@_[ @values_idx ]' }