Changeset 193 in lab
- Timestamp:
- Jan 25, 2013 6:26:26 PM (11 years ago)
- Location:
- trunk/misc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/misc/findcombinable.pl
r192 r193 33 33 print STDERR "checking '$target'\n"; 34 34 opendir(my $dir, $target) || return $target; 35 my @entries = sort readdir($dir);35 my @entries = sort grep { !m/^(\.|\.\.)$/g } readdir($dir); 36 36 closedir($dir); 37 37 38 38 my @dirs; 39 39 while (my $entry = shift @entries) { 40 next if ($entry =~ /^\.+$/);41 40 $entry = $utf8->decode($entry); 42 41 if (match($entry)) { -
trunk/misc/findnonsjis.pl
r191 r193 30 30 print STDERR "checking '$target'\n"; 31 31 opendir(my $dir, $target) || return $target; 32 my @entries = sort readdir($dir);32 my @entries = sort grep { !m/^(\.|\.\.)$/g } readdir($dir); 33 33 closedir($dir); 34 34 35 35 my @dirs; 36 36 while (my $entry = shift @entries) { 37 next if ($entry =~ /^\.+$/);38 37 if (match($entry)) { 39 38 print "'$target/$entry' contains non Shift_JIS character\n";
Note: See TracChangeset
for help on using the changeset viewer.