http://www.perlmonks.org?node_id=997099


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