-{
- local $@;
- if (eval { require Hash::Util::FieldHash; 1 }) {
- plan tests => 2 * 5 + 7 + 1;
- defined and diag "Using Hash::Util::FieldHash $_"
- for $Hash::Util::FieldHash::VERSION;
- } else {
- plan skip_all => 'Hash::Util::FieldHash required for testing uvar interaction'
- }
+if (VMG_UVAR) {
+ load_or_skip_all('Hash::Util::FieldHash', undef, [ ]);
+ plan tests => 2 * 5 + 7 + 1;
+} else {
+ skip_all 'No nice uvar magic for this perl';