X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F30-scalar.t;h=c92b1869b2c33e09f2b42d0086808028ff441e3c;hb=788d90465f0c4180f7b27d63f355bbf260ecb972;hp=caf76c9c558b3a411c895d7cac1cbfa02166b8eb;hpb=c88c00773bfc576b07eafbc794cdb3ab2b0c670d;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/t/30-scalar.t b/t/30-scalar.t index caf76c9..c92b186 100644 --- a/t/30-scalar.t +++ b/t/30-scalar.t @@ -105,11 +105,13 @@ watch { $h{b} = 4 } { }, 'hash element: set after delete'; SKIP: { my $SKIP; - unless (MGf_COPY) { + if (!MGf_COPY) { $SKIP = 'No copy magic for this perl'; } else { - eval "use Tie::Array"; - $SKIP = 'Tie::Array required to test clear magic on tied array values' if $@; + local $@; + unless (eval { require Tie::Array; 1 }) { + $SKIP = 'Tie::Array required to test clear magic on tied array values'; + } } skip $SKIP => 3 if $SKIP;