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

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://577506]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2018-01-19 02:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (215 votes). Check out past polls.

    Notices?