mirror of
https://github.com/rn10950/RetroZilla.git
synced 2024-11-10 01:40:17 +01:00
21 lines
271 B
Perl
21 lines
271 B
Perl
#!/usr/bin/perl
|
|
|
|
use Cwd;
|
|
|
|
$curr_dir=`cd`;
|
|
|
|
open(OUTFILE,">file_list.txt") || die "Can't open file_list.txt $!";
|
|
opendir(D,".");
|
|
|
|
@files=readdir(D);
|
|
$curr_dir=~s/\\/\//g;
|
|
chomp($curr_dir);
|
|
|
|
foreach $file(@files) {
|
|
if($file=~m/\.*m/) {
|
|
print OUTFILE "$file\n";
|
|
}
|
|
}
|
|
|
|
|