home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
netprofessional
/
code
/
02.02
/
MacPerl.CheckFileNames.perl.txt
< prev
next >
Wrap
Text File
|
2010-09-21
|
286b
|
13 lines
# CheckFileNames - find unusual (and possibly problematic) file names
#
# prints: MyDisk:FileTree:foo_bar
# ...
use File::Find;
find(\&lookForWeirdNames, "MyDisk:FileTree"); # scan tree
sub lookForWeirdNames {
print "$File::Find::name\n" if ($_ =~ m/[^A-Za-z0-9\.]/);