BackPAN-Index-Create
    
    
  
  
  
view release on metacpan or search on metacpan
lib/BackPAN/Index/Create.pm view on Meta::CPAN
    else {
        $stem = $basedir;
    }
    foreach my $path ($rule->all($author_dir)) {
        next if $path =~ /\s+\z/;
        next if $path =~ /\n/;
        my $tail = $path;
           $tail =~ s!^\Q${stem}\E[^A-Za-z0-9]+!!;
           $tail =~ s!\\!/!g if $^O eq 'MSWin32';
        my @stat = stat($path);
        my $time = $stat[9];
        my $size = $stat[7];
        # printf $fh "%s %d %d\n", $tail, $time, $size;
        $plugin->add_file($tail, $time, $size);
    }
    $plugin->finish();
    close($fh) if exists($argref->{output});
}
( run in 0.473 second using v1.01-cache-2.11-cpan-c333fce770f )