in reply to Using a Variable as a Match Expression

Personally, I would use a different data structure for your @list_of_file: %list_of_file = ( '/home/camel/file' => 42, ...); and then defined $list_of_file{$find_file}.

However, given the data structures that you have, may I suggest looking at grep and index?

--MidLifeXis