Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Revert "Fix Hash.perl creating code that throws an error when EVALing"
This reverts commit 979d2d4.

${ } parses fine as long as you're actually producing a hash literal.
  • Loading branch information
TimToady committed Aug 22, 2015
1 parent d6049e4 commit 7d85cf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Hash.pm
Expand Up @@ -44,8 +44,8 @@ my class Hash { # declared in BOOTSTRAP
}

multi method perl(Hash:D \SELF:) {
'$' x nqp::iscont(SELF) ~
'{' ~ SELF.pairs.sort.map({.perl}).join(', ') ~ '}'
~ '.item' x nqp::iscont(SELF)
}

multi method gist(Hash:D:) {
Expand Down

0 comments on commit 7d85cf9

Please sign in to comment.