in reply to Re^4: Parse file and creating hashes
in thread Parse file and creating hashes

open my $fh, '<', $file or die; # FIXME change for your file

Remove the backslash, it is only used when you are treating a string as a file.