http://qs321.pair.com?node_id=413203


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

It's not part of Test::More itself, but Test::Exception's dies_ok method should help:

dies_ok { $a->f1 } 'passing no arguments to f1 dies';

For more information about the different testing modules available, see the Testing Modules section of Perl Quality Assurance Projects.