Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^2: md5_hex gives different values for same string

by lyklev (Pilgrim)
on Oct 10, 2006 at 22:00 UTC ( #577506=note: print w/replies, xml ) Need Help??

in reply to Re: md5_hex gives different values for same string
in thread md5_hex gives different values for same string

Did you copy the file mil-dic.txt from winxp to linux? If so, unix newlines (\n) vs. dos newlines (\r\n) might cause problems. The \r characters are seen as part of the line.

file mil_dic.txt on most linuxes reveals whether you have dos or unix newlines. You can use the program dos2unix to convert your file. Real perl cracks convert command line: on linux,

perl -i -p -e "s/\r//" mil-dic.txt
(converting unix to dos newlines on a windows machine won't work this way, though)

From lots of experience learnt after countless headaches: whenever there is strange file behaviour, look for the newlines.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://577506]
[Corion]: "Unmatched ) in regex; marked by <-- HERE in m/(&#9583;&# 9633;)&#9583;&# 65077; &#9531;&#9473;&# 9531;) <-- HERE / at -e line 1." :)
[Corion]: Meh - my "flip the table" string doesn't render here ;)
[choroba]: It renders correctly in pm-cb-g
[erix]: heh
[Veltro]: is it a question?
[erix]: or a conundrum?

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2018-07-17 16:08 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (372 votes). Check out past polls.