Help for this page

Select Code to Download


  1. or download this
    use Test::Exception => 1;
    
    throws_ok { dying_sub() } qr/I always die/, "sub dies with correct err
    +or message";