note
frozenwithjoy
<p>I think replacing this:</p>
<c>
$x =~ s/['\s+]//g;
my %hash = split /[:,]/, $x;
</c>
<p>with this:</p>
<c>
$x =~ s/'\s*:\s*'/' => '/g;
my %hash = %{ eval "{$x}" };
</c>
<p>would make it less breakable (but still breakable if and keys or values contained something like "<c>' : '</c>").</p>
1121802
1121804