|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re^3: filename with question markby Anonymous Monk |
| on Oct 04, 2012 at 05:58 UTC ( #997186=note: print w/ replies, xml ) | Need Help?? |
|
I'll investigate how to handle file with what appears to be a ^M (\r) at the end of a filename. -Brian Well, it really shouldn't need special handling, other than making sure when you warn/die... the filename is escaped, because \r among other chars doesn't show up well in console :)( Basic debugging checklist ) open should just open the file, so first thing to try is feeding it proper Dumpered filename -- if that works, you know what to work on next, which is how the filename gets to your program, if its readdir, it should work, if its @ARGV or something else, you might need to decode utf8 ... see utf8, how to unicode filenames?, how to make a filename in unicode characters
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||