- or download this
use Test::More 'no_plan';
use Test::Exception;
- or download this
my $result;
lives_ok {$result = $o->answer} 'answer worked';
is $result, 42, 'answer returned 42';
- or download this
is live{$o->answer}, 42, 'answer worked';
- or download this
live
Returns the result of the given expression if no
...
unlike live {$o->foo}, '/fribble/', 'no fribble';
Appropriate care must be taken.
- or download this
use Sub::Uplevel;
...
) if $@;
$value;
};