good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Good option. Only downside is that you lose the prototyping of the test functions, and the calling syntax is a little more complex (in my opinion). You would also need to have it as:
(we can only prototype the sub away if the coderef is the first argument) One other problem would be in figuring out the test name to output when an exception is thrown. Since it's optional for test subs it may, or may not, be the last argument. In reply to Re^2: Test::Exception extension with (evil?) overloading
by adrianh
|
|