Yep, Remove the backslash before $file in the open statement.
In reply to Re^5: Parse file and creating hashes by tybalt89 in thread Parse file and creating hashes by PerlMonger79