See Original text in context
multi sub eval-dies-ok(Str , = '')
Marks a test as passed if the given $string
throws an exception when eval
ed as code.
The function accepts an optional description of the test.
eval-dies-ok q[my $joffrey = "nasty";die "bye bye Ned" if $joffrey ~~ /nasty/],"Ned Stark dies";