Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (13)
As of 2016-06-29 20:42 GMT
Find Nodes?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...

    Results (387 votes). Check out past polls.