X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F25-copy.t;h=0630ae33502d7c659616d1df4de0b9bebb809d9f;hb=e5e39f5e8bec67b3a08f861da63c5eb4cafed09f;hp=98fbf22d3fcdf378e417ee675e031393dd9b0a1c;hpb=2b43040992d1105e0cb8e0aee5a5e9f3b6c58dd8;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/t/25-copy.t b/t/25-copy.t index 98fbf22..0630ae3 100644 --- a/t/25-copy.t +++ b/t/25-copy.t @@ -23,7 +23,7 @@ SKIP: { eval "use Tie::Array"; skip 'Tie::Array required to test copy magic on arrays' => (2 * 5 + 3) + (2 * 2 + 1) if $@; - diag "Using Tie::Array $Tie::Array::VERSION" if defined $Tie::Array::VERSION; + defined and diag "Using Tie::Array $_" for $Tie::Array::VERSION; tie my @a, 'Tie::StdArray'; @a = (1 .. 10); @@ -57,7 +57,7 @@ SKIP: { SKIP: { eval "use Tie::Hash"; skip 'Tie::Hash required to test copy magic on hashes' => 2 * 9 + 6 if $@; - diag "Using Tie::Hash $Tie::Hash::VERSION" if defined $Tie::Hash::VERSION; + defined and diag "Using Tie::Hash $_" for $Tie::Hash::VERSION; tie my %h, 'Tie::StdHash'; %h = (a => 1, b => 2, c => 3);