in reply to MD5 non ascii file name

This has nothing to do with the filename (though IIRC Digest::MD5 does not support wide characters).

You're not setting $ctx anywhere in that code. You probably should be use()ing strict and warnings.

Replies are listed 'Best First'.
Re^2: MD5 non ascii file name
by moritz (Cardinal) on Aug 19, 2008 at 20:29 UTC
    (though IIRC Digest::MD5 does not support wide characters).
    That's actually not a Digest::MD5 limitation, but rather a design choice of the MD5 hash algorithm (and most or all other hash algorithm share that limitation).

    Hash algorithms generally work with binary data, so you'd have to Encode::encode the data first.