(untested)use File::Copy; mkdir 'WEIGHT' or die $!; for my $file (glob 'ID_*_weight.txt') { copy($file, 'WEIGHT') or die $!; }
See mkdir, glob and File::Copy.
In reply to Re: new directory with sorted files
by choroba
in thread new directory with sorted files
by perllearner007
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |