use File::Touch; # &touch
use POSIX qw(WIFEXITED WEXITSTATUS WIFSIGNALED WTERMSIG WIFSTOPPED WSTOPSIG);
HERE
- eval "$_\n; 1;" or push @missing,(/^\s*use\s+([^\s;]+)/)[0];
+ eval "$_\n; 1;" or push @missing,(/^\s*use\s+([^ ;]+)/)[0];
}
die "You are missing some modules - install them by:\n"
."\tperl -MCPAN -e 'install qw(".join(" ",@missing).")'\n"
my $nocheck=shift @files if $files[0] eq "nocheck";
my $dest=pop @files;
+ # expand pattern to properly match © resulting filenames count
+ @files=map({ glob $_; } @files);
@files==copy @files,$dest or $nocheck or confess "$!";
}
my $nocheck=shift @files if $files[0] eq "nocheck";
my $flag=shift @files if ref $files[0];
+ # expand pattern to properly match &remove resulting filenames count
+ @files=map({ glob $_; } @files);
@files==remove((!$flag ? () : $flag),@files) or $nocheck or confess "$!";
}
my($patt)=@_;
return $patt if $patt!~/\Q[\E(.*?)\Q]\E/;
- my($pre,$post)=($`,$'); # FIXME: local($`,$') doesn't work - why?
- return map({ _expandclass("$pre$_$post"); } split("",$1));
+ my($pre,$range,$post)=($`,$1,$'); # FIXME: local($`,$1,$') doesn't work - why?
+ 1 while $range=~s#(.)-(.)# join("",map(chr,(ord($1)..ord($2))));
+ #ge;
+ return map({ _expandclass("$pre$_$post"); } split("",$range));
}
sub run