http://www.perlmonks.org?node_id=413163


in reply to Test::More usage to test functions that die

Howdy!

eval sets $@ if the code dies, so something like

ok($@, "no args passed");
will directly test that condition.

yours,
Michael