Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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?

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 scrutinizing the Monastery: (7)
As of 2015-11-28 02:46 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (737 votes), past polls