You're not setting $ctx anywhere in that code. You probably should be use()ing strict and warnings.
In reply to Re: MD5 non ascii file name by Joost in thread MD5 non ascii file name by benjwlee