Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^9: Find and replace MD5 hash from file

by philipbailey (Chaplain)
on Jun 29, 2011 at 21:21 UTC ( #912042=note: print w/replies, xml ) Need Help??


in reply to Re^8: Find and replace MD5 hash from file
in thread Find and replace MD5 hash from file

Your approach is absolutely fine in a code library providing the most generalisable possible solution for escaping arbitrary shell commands. There is nothing wrong with (the factual content of) your statements. All I am saying here is that in this specific case, where we have definitive evidence (even if you do not wish to examine that evidence) that quotes are never present, that a simpler approach is sufficient.

  • Comment on Re^9: Find and replace MD5 hash from file

Replies are listed 'Best First'.
Re^10: Find and replace MD5 hash from file
by ikegami (Pope) on Jun 29, 2011 at 21:31 UTC

    All I am saying here is that in this specific case, where we have definitive evidence

    That's what you are saying *now*, and I don't have a problem with that. That's why I updated Re^2 in response to Re^7. Before Re^7, there was no mention of that.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://912042]
help
Chatterbox?
[pryrt]: 1nickt, sprintf "%.16e", $v will always give enough precision to see 1 ULP (the smallest fractional part) of a standard 64bit Perl NV*
[pryrt]: (*: for systems where $Config{nvsize}==8 )
[pryrt]: Thus, that's "enough precision" to tell the difference between 1.0 and 1.0+1ULP
[pryrt]: But in what circumstance does your problem arise? When, in Perl, does the integer 1 not work identically to the floating-point NV 1.0000000000000000 e0?

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (15)
As of 2017-05-24 19:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?