Crypt-Rhash
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
sub copy_c_files($) {
my $from_dir = $_[0];
my @result = ();
(opendir my($dh), $from_dir) or die "Can't open $from_dir: $!";
my @files = grep { /(?<!\Atest_hashes)\.c$/ } readdir $dh;
closedir $dh;
for (@files) {
my ($from, $to) = ("$from_dir/$_", "_$_");
push @result, $to;
my ($df, $dt) = ((stat($from))[9], (stat($to))[9]);
next if(defined($dt) && defined($df) && $dt >= $df);
#print "copy $from -> $to\n";
copy($from, $to)
or die "Can't copy $from to $to: $!";
}
return @result;
}
if($rh_type eq 'builtin') {
# using sources of the builtin librhash
( run in 0.724 second using v1.01-cache-2.11-cpan-49f99fa48dc )