Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: filename with question mark

by bdugay (Novice)
on Oct 03, 2012 at 21:37 UTC ( #997138=note: print w/replies, xml ) Need Help??


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

Hi Ken, thanks for testing. The last character of your file appears to be different than mine. I don't think providing my code at this point is relevant. Going by Anonymous' comment, I'll investigate how to handle file with what appears to be a ^M (\r) at the end of a filename. -Brian

Replies are listed 'Best First'.
Re^3: filename with question mark
by Anonymous Monk on Oct 04, 2012 at 05:58 UTC

    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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997138]
help
Chatterbox?
[jdporter]: Dang. No good example of how to use IPC::Run's run() in its simplest mode?
[LanX]: him or her! ;)
[1nickt]: jdporter Maybe try IPC::Run3
[LanX]: Sandy Koufax is indeed rude. .. oO
[chacham]: Re: Re: pattern matching -- feeling stoopit a poll idea about centrists, is +8 -5, used to be +6/-6 how apropos :)is +8
[chacham]: ...errr... Re: poll ideas quest 2015 (political centrist)
[chacham]: ooh, late, nighty nite everybody

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (15)
As of 2017-05-24 20:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?