in reply to MD5 non ascii file name

As others have pointed out, $ctx isn't set. You also don't check the return value of the open(I, "<$file"); call, so you don't know whether the open succeeded.

And isn't it time to slowly kill the bare-word-as-a-file-handle idiom for new code? Bare word file handles are so 20th century.

Replies are listed 'Best First'.
Re^2: MD5 non ascii file name
by ikegami (Patriarch) on Aug 22, 2008 at 01:04 UTC

    And isn't it time to slowly kill the bare-word-as-a-file-handle idiom for new code?

    Unforunately, open still uses barewords for most of its examples. But I think someone submitted a patch to change that in the next version?