X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F28-uvar.t;h=d44f9f1f0b38ad3ff17446eef7ab53b6b7a9e0c3;hb=788d90465f0c4180f7b27d63f355bbf260ecb972;hp=0eaf00130eba5b5efc0c3566e6bb283ed650d053;hpb=c88c00773bfc576b07eafbc794cdb3ab2b0c670d;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/t/28-uvar.t b/t/28-uvar.t index 0eaf001..d44f9f1 100644 --- a/t/28-uvar.t +++ b/t/28-uvar.t @@ -51,8 +51,9 @@ $x = watch { $h{a} } { fetch => 1 }, 'fetch directly with also non uvar magic'; is $x, 1, 'uvar: fetch directly with also non uvar magic correctly'; SKIP: { - eval "use Tie::Hash"; - skip 'Tie::Hash required to test uvar magic on tied hashes' => 2 * 5 + 4 if $@; + my $has_tie_hash = do { local $@; eval { require Tie::Hash; 1 } }; + skip 'Tie::Hash required to test uvar magic on tied hashes' + => 2 * 5 + 4 unless $has_tie_hash; defined and diag "Using Tie::Hash $_" for $Tie::Hash::VERSION; tie my %h, 'Tie::StdHash';