Your skill will accomplish what the force of many cannot |
|
PerlMonks |
filename with question markby bdugay (Novice) |
on Oct 03, 2012 at 16:55 UTC ( [id://997098]=perlquestion: print w/replies, xml ) | Need Help?? |
bdugay has asked for the wisdom of the Perl Monks concerning the following question:
Hi, 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/IconActual 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, Brian
Back to
Seekers of Perl Wisdom
|
|