Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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]

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997099]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2018-05-26 03:05 GMT
Find Nodes?
    Voting Booth?