in reply to Perl File Comparison

Another possibility is that you may be using the wrong comparison operator. You are using ==, which is used to compare numbers. If you are comparing strings, which it looks like you are, you would want eq .

Edit: Oops, sorry, I see 1nickt already mentioned that.