You're missing a dollar-sign in
binmode(fh), but that isn't the cause of your problem, afaik (unless you mean with "can't open file" that you can't view it in an editor). Can you give us the exact error message?
Update According to your reply, in all likelyhood
binmode(fh) is the problem. Try replacing it with
binmode($fh)
[ ar0n ]