bdugay has asked for the wisdom of the Perl Monks concerning the following question:
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^MI cannot find anyway to successfully handle this situation. Can anyone offer some suggestions?
Thanks and regards, Brian
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: filename with question mark
by kcott (Archbishop) on Oct 03, 2012 at 17:52 UTC | |
by bdugay (Novice) on Oct 03, 2012 at 21:37 UTC | |
by Anonymous Monk on Oct 04, 2012 at 05:58 UTC | |
|
Re: filename with question mark
by Anonymous Monk on Oct 03, 2012 at 17:00 UTC | |
by bdugay (Novice) on Oct 03, 2012 at 21:34 UTC |