X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FScope-Upper.git;a=blobdiff_plain;f=t%2F63-uplevel-ctl.t;h=6b1ec188480053cb683018af750a0a076dcffd0a;hp=fda4410f8791538e44e3e030b71f069acd43c713;hb=c9c2e1e51a8c563265670a5738ba68fad8253419;hpb=ca5036199c5ed4b72e81ea0031887eddf804155c diff --git a/t/63-uplevel-ctl.t b/t/63-uplevel-ctl.t index fda4410..6b1ec18 100644 --- a/t/63-uplevel-ctl.t +++ b/t/63-uplevel-ctl.t @@ -223,7 +223,7 @@ SKIP: { like $@, qr/^tomato at \Q$0\E line $line/, "$desc (third): correct exception"; } -my $has_B = do { local $@; eval 'require B; 1' }; +my $has_B = do { local $@; eval { require B; 1 } }; sub check_depth { my ($code, $expected, $desc) = @_;