I am using File::Find function. I'm using Perl (v5.12.3) running on Mac OS X Lion (10.7.5). I am opening each file that is found and doing an MD5 digest. I am referencing each file using $File::Find::name. When it encounters a file with a trailing question mark, I get an error that the file is not found and the script errors out:
': No such file or directory at ./file_collector.pl line 166.D/Users/work/Documents/Icon
Actual file is: /Volumes/Macintosh HD/Users/work/Documents/Icon?
When I try to list it from the shell, tab complete displays it as
$ ls -lh /Volumes/Macintosh\ HD/Users/work/Documents/Icon^M
-rw-r--r--@ 1 myuser staff 0B Mar 14 2008 /Volumes/Macintosh HD/Users/work/Documents/Icon?
I cannot find anyway to successfully handle this situation. Can anyone offer some suggestions?
Thanks and regards,