Subject: | superhash() does not localize $@ |
superhash() does not localize $@
so, you can't write code like this
ok ! defined eval {die { a => 1, b => 2}; };
cmp_deeply $@, superhashof { a => ... };
I believe this is because perl 'require' (which is used inside superhash)
will reset $@. I think that can be fixed using local $@