@file_contents_array = ; %file_contents = map {$_ => 1} @file_contents_array; # Now you can more easily compare # %file_contents with your existing hash