]> git.vpit.fr Git - perl/modules/Variable-Magic.git/blobdiff - t/16-huf.t
A terser way to display versions for modules used in tests
[perl/modules/Variable-Magic.git] / t / 16-huf.t
index da2e674eb8e90fc8a91d85744d65b7bb26ae7080..0934219579ca9613d9955ceda412f0967ace69c0 100644 (file)
@@ -16,8 +16,8 @@ if ($@) {
  plan skip_all => 'Hash::Util::FieldHash required for testing uvar interaction';
 } else {
  plan tests => 2 * 5 + 7 + 1;
- my $v = $Hash::Util::FieldHash::VERSION;
diag "Using Hash::Util::FieldHash $v" if defined $v;
+ defined and diag "Using Hash::Util::FieldHash $_"
                                           for $Hash::Util::FieldHash::VERSION;
 }
 
 use lib 't/lib';