Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^3: filename with question mark

by Anonymous Monk
on Oct 04, 2012 at 05:58 UTC ( #997186=note: print w/replies, xml ) Need Help??

in reply to Re^2: filename with question mark
in thread filename with question mark

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997186]
[stevieb]: My GPIO expander chips should arrive tomorrow, but I think I'll throw a shift register against them and see if all six I have will turn at once. Amps are near the breaking point, but I want to know max sustainable V and I output.

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2018-03-22 22:18 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (286 votes). Check out past polls.