#!./perl -w
#
# Copyright 2002, Larry Wall.
#
# You may redistribute only under the same terms as Perl 5, as specified
# in the README file that comes with the distribution.
#
chdir('t') if -d 't';
require Config;
print "1..0 # Skip: Storable was not built\n";
exit 0;
}
} else {
if ($] < 5.005) {
print "1..0 # Skip: No Hash::Util pre 5.005\n";
exit 0;
# And doing this seems on 5.004 seems to create bogus warnings about
# unitialized variables, or coredumps in Perl_pp_padsv
} elsif (!eval "require Hash::Util") {
print "1..0 # Skip: No Hash::Util:\n";
exit 0;
} else {
die;
}
}
}
}
print "1..100\n";
lock_hash %hash;
unlock_value %hash, 'answer';
unlock_value %hash, 'extra';
my $test;
}
}
my $hash = shift;
my $cloner = shift;
print "# Failed: keys mis-match after deep clone.\n";
print "# Original keys: @in_keys\n";
print "# Copy's keys: @out_keys\n";
}
# $copy = $hash; # used in initial debug of the tests
"key 'question' not locked in copy?";
"key 'answer' not locked in copy?";
my $diag = $@;
$diag =~ s/\n.*\z//s;
}
"key 'undef' exists";
"value for key 'undef' is undefined";
}
my $object = \%hash;
# bless {}, "Restrict_Test";
my %hash2;
for (0..16) {
}
for (0..16) {
my $k = "k$_";
my $diag = $@;
$diag =~ s/\n.*\z//s;
}
}
}
}