Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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
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 scrutinizing the Monastery: (12)
As of 2014-09-16 14:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (31 votes), past polls