App-rs
view release on metacpan or search on metacpan
[qw/File::Path make_path/],
['List::Util', map { "&$_" } qw/reduce all first none/],
['Fcntl', map { "&$_" } qw/S_IFMT S_IFLNK S_IFREG S_IFDIR/],
[qw/Config %Config/]];
BEGIN {
for my $c (qw/green cyan yellow magenta red/) {
no strict 'refs';
my $f = uc substr $c, 0, 1;
*$f = sub () { [$c] };
*{$f x 2} = sub () { ['bold', $c] };
}
}
sub set {
my ($f, $m) = @_;
# chown should be called before chmod to prevent setuid, setgid bit gets reset.
chown @$m{qw/uid gid/}, $f and chmod $m->{mode} & 07777, $f and utimensat($f, $m->{mtime}) or die "$f: $!";
}
sub equiv {
my ($p, $q) = @_;
no warnings 'uninitialized';
( run in 1.180 second using v1.01-cache-2.11-cpan-99c4e6809bf )