in reply to Checking multiple named assertions (outside Test::More and co)

So, you need something simple like:
$failed = { "name1" => !! do { COND1 }, "name2" => !! do { COND2 }, "name3" => !! do { COND3 }, };
('!!' to avoid possible memory leaks)

If you still want DSL for this, probably better to implement it by yourself.

I think it's perfectly OK to implement such small things manually, instead of using CPAN modules for this.

Also, if you are looking for DSL, it's better to disclose what task your program actually do, because DSL is something related to business logic, rather than to abstract true/false tracking in a named hash.
  • Comment on Re: Checking multiple named assertions (outside Test::More and co)
  • Download Code

Replies are listed 'Best First'.
Re^2: Checking multiple named assertions (outside Test::More and co)
by Dallaylaen (Chaplain) on Aug 18, 2013 at 20:49 UTC
    Neat, simple and short. I really like this solution. Thanks a lot!