in reply to Creating a array hash with all file content

$files_content{ $file } = <$fh>;
That will read the first line of the file.

If you think you are having problems with the second half, the reporting, start by just using Data::Dumper.