Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: filename with question mark

by Anonymous Monk
on Oct 03, 2012 at 17:00 UTC ( #997099=note: print w/ replies, xml ) Need Help??


in reply to filename with question mark

and doing an MD5 digest.

How, by shelling out to md5sum?

show code? use Data::Dump 'pp' to format filenames

Use String::ShellQuote to quote it?

The filename appears to be "Icon\r" ( ^M means \r )

Try  perl -le " print -s qq[....Icon\r]


Comment on Re: filename with question mark
Download Code
Replies are listed 'Best First'.
Re^2: filename with question mark
by bdugay (Novice) on Oct 03, 2012 at 21:34 UTC
    Hi Anonymous,

    I'm using Digest::MD5, but that is irrelevant because the problem occurs while trying to open file, prior to any processing. You make a good point about the last character of the file. I think that is where the problem lies. String::ShellQuote looks interesting, I'll investigate that. -Brian

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997099]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2015-07-28 04:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (252 votes), past polls