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

Re^2: md5_hex gives different values for same string

by lyklev (Pilgrim)
on Oct 10, 2006 at 22:00 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://577506]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2024-04-16 09:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found